29,201 questions
0
votes
1
answer
26
views
How to set a background image for the WebView on an android app built with React DOM + Capacitor v7?
package com.app_name.app;
import com.getcapacitor.BridgeActivity;
import android.os.Bundle;
import android.graphics.Color;
// import android.webkit.WebView;
public class ...
-2
votes
0
answers
64
views
+200
Can you include an `alert` with a sound within the `end` event of a Live Activity?
When we do that, the Live Activity is immediately ended without any alert or sound. The dismissal-date is only used for the Lock Screen.
It no longer shows on the Dynamic Island.
Yet it says on Lock ...
2
votes
1
answer
42
views
Why Android package activities destroy after switching options in coarse/fine location permission?
Either i have open location permission window from my application, either i have go myself in application settings -> Permissions -> Location and playing with the options:
Allow all the time
...
0
votes
1
answer
77
views
ActivityRecognitionClient.requestActivityUpdates succeeds, but BroadcastReceiver never receives updates (Android 15)
Problem
I call ActivityRecognitionClient.requestActivityUpdates and get success, but my BroadcastReceiver never gets any intents. No activity logs appear even after moving with the device for 30–60s.
...
0
votes
1
answer
37
views
Creating activity prevents spinner from spinning in Android
I have 2 activities in my app. When another one is called there is a spinner but it doesn't spin. I think it may be because the main thread is stuck.
I moved all background tasks to Dispatchers.IO, ...
1
vote
0
answers
54
views
Can I leave in onBackPressed() method call in my Android activity for future Android 36+ versions?
Issue:
I've been updating my apps for the Android 36 updates. I've implemented the onBackPressedCallback for my activities. I've tried adding a DrawerListener that will set the DrawerLayout's ...
0
votes
1
answer
75
views
Kotlin - Execute a fundtion in MainActivity from outside MainActivity
I hope this is a simple one. I have an app that currently has a full-screen display of the time. Every second, the time is updated.
I want to have it play a WAV resource depending on the time (say ...
0
votes
0
answers
32
views
MainActivity Error when moved to intermediate activity
In my original code, I have an activity named MainActivity. In this activity, I need to use Google Maps.
When I run the program, everything works fine and correctly displays the activity's contents.
...
0
votes
0
answers
99
views
androidx.media3.ui.PlayerView Full Screen Button Disabled on Android 15
I am using a androidx.media3.ui.PlayerView on an Activity to play a video on full screen in landscape.
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:...
0
votes
0
answers
15
views
Last fragment is shown as a flicker when launched from a different application
The target activity uses singleTop as launchMode. When it is launched from another application with the following code, it shows Fragment A, then user switches to fragment B. Then user switches to ...
0
votes
1
answer
64
views
PermissionsRationaleActivity is not recognized
I upgrated my app to target the API 35. I downloaded Android Studio Narwhal | 2025.1.1 with Java sdk 21.
In my manifest, PermissionsRationaleActivity is not recognized.
The current documentation here ...
2
votes
0
answers
45
views
Flutter Plugin for AILink BLE Weight Scale SDK: Architectural Mismatch with Activity-Required Implementation
Problem
I'm implementing weight scale functionality in my Flutter app using the AILink Bluetooth SDK (bluetoothlib_ts_1.0.3). This SDK requires extending BaseBlueToothActivity and implementing ...
0
votes
1
answer
97
views
Android NavController shows last fragment before a different fragment requested from another activity is shown
SettingsLandingActivity holds multiple fragments and handles the transition in between them using NavController. When user enters the activity, it shows SettingsLandingFragment, as it is the default ...
0
votes
1
answer
117
views
Android WebView not always automatically drawn on App Resume
We have an Android App written in Kotlin, which basically acts as a wrapper for a Web App (using an Android WebView). It's used mostly on older versions of Android (9, 10, 11), and since recently ...
3
votes
0
answers
40
views
Is it safe to call Activity.finish() several times?
Can unexpected behavior occur if activity.finish() is called multiple times, e.g. 100 times per second due to automated clicks on a Button?
Is it a good idea to safeguard like this:
if (!activity....
0
votes
0
answers
62
views
Activity class {com.package.variant/IconAlias} does not exist after changing app icon with activity-alias
I'm using activity-alias in my Android project to support dynamic app icon changes for different occasions. Everything works fine after a fresh install, but when I change the icon and reinstall the ...
0
votes
1
answer
33
views
What happens if the OS cannot restore an activity?
I read through https://developer.android.com/guide/components/activities/activity-lifecycle?hl=en#saras
and it doesnt say anywhere (or at least i cant find it) what would happen if the OS fails to ...
1
vote
0
answers
56
views
How to get application class methods from fragments or another activity?
In Kotlin declared variables in the application class can be accessed using the below code. How do I implement the the same in Java to be able to access that class variables and methods. Thanks a lot.
...
0
votes
0
answers
58
views
Why is my Android app not auto-launching during device setup with MDM policy?
I'm developing an Android app that should be automatically installed and launched as part of the device setup process using a Mobile Device Management (MDM) solution. The app's package is configured ...
2
votes
0
answers
118
views
How to avoid activity recreation due to change in CONFIG_ASSETS_PATHS?
After reboot the LauncherActivity is created. Then following a config change the activity is destroyed and recreated. I could in the log that ActivityTaskManager: Config changes=80000000 is printed. ...
0
votes
1
answer
34
views
Activity RESULT_OK never seems to happen
I'm currently working on changing the email in my app. The task is to open an email app (showing a chooser if multiple email apps are available) and, once the user selects an app, navigate to the ...
-1
votes
1
answer
77
views
How can I pass data from one Activity to another?
The problem is: Destination, date and notes are not displayed in the DetailsActivity, only the trip type is displayed. I think there is a problem in the Intent but honestly I can't figure out which ...
0
votes
1
answer
38
views
How to Prevent App B from Being Retained in Background When Switching Back to App A in Android?
I have two Android apps, App A and App B, and I am using Intents to switch between them.
Scenario:
App A opens App B using an Intent.
App B completes its task, and now I need the user to switch back ...
0
votes
1
answer
58
views
Activity transaction in kotlin
I want to use animation zoom ,that is built for the Flutter language in Kotlin Jetpack Compose.
How can I implement this animation by transition between activities using navigation?
Detail
1
vote
1
answer
129
views
Activity Transition Api
I am facing the issue while working with activity_transitionapi:
Github
Requirement: Detection of in-vehicle mode.
While running the github project, we're not able to detect in-vehicle state in the ...