710 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
70
views
Android 16 with appCategory="game" forces activity recreation
I’m running into an issue with the new Android 16 behavior change regarding orientation handling.
My app is a game, and in the manifest I’ve set:
<application
android:appCategory="game&...
0
votes
0
answers
24
views
Why is Activity.onStopped() not called when another Activity starts within the same Task?
I'm testing on an Android Emulator (SDK_INT=35), my app has targetSdk=34.
Activities in my app are not transparent and occupy every pixel of the screen.
But still, Activity.onStopped() is not called ...
2
votes
0
answers
46
views
onResume begin called when app is in background on launch
On Android 14, If I'm launching an app while the device is locked, it will call onResume/onPause, while the app is in the background. This is causing issues with NFC intent registration, because the ...
0
votes
1
answer
163
views
AppLifeCycleState.detached is not called When App is closed
Future<void> onAppClose({required String userId}) async {
await FirebaseFirestore.instance
.collection(FirebaseConstants.usersCollection)
.doc(userId)
.update({'...
0
votes
1
answer
57
views
button.setOnClickListener() Crashes Android App, on Device Rotation
I'm working on a project that updates a textview with text when a button is pressed. For example, you press 0 and 0 displays on the textview. When the device changes orientation, such as when the user ...
0
votes
1
answer
72
views
Activity onStop is received for previous activity instance after onResume during fast transition
The Launcher activity is responsible to handle the widgets of Homescreen. In onStart it calls appWidgetHost.startListening and in onStop it calls appWidgetHost.stopListening(). The expectation is when ...
1
vote
1
answer
453
views
Problem with getOnBackPressedDispatcher while Handling Fragment Backstack
In my single-activity app, I've implemented a feature where pressing the back button in the main activity triggers a delayed exit sequence, displaying a 'Goodebye' message before closing the app. This ...
0
votes
0
answers
114
views
Android android.os.TransactionTooLargeException, Growing size of android:support:fragments
I have a problem with the android application.
The entire application is based on one main activity and many fragments that the activity manages.
Fragments are changed by calling a method from the ...
2
votes
1
answer
83
views
How does Android Framework process the option of 'don't keep activities'?
I know how to handle "Don't keep activities" option in App. I can use onSaveInstanceState and onRestoreInstanceState, etc.
In this question, I want to know how the Android Framework handles ...
5
votes
0
answers
3k
views
Is this a bug in later Android versions or a problem with my code? Spinner not firing listeners
I've got a bug that has been frustrating me for months now and I can't seem to get to the bottom of it despite a lot of searching.
The issue seems to be to do with when the OnItemSelectedListener of a ...
3
votes
0
answers
812
views
Is it normal for onCreate() to be called twice during first installation of Android app?
Does onCreate() get called twice during first run (during installation)?
I've seen a couple of similar questions regarding this, but they are sufficiently different, and do not answer my question.
In ...
0
votes
1
answer
1k
views
viewModelScope.launch{} runs only first time
I came across an issue while building my live app.
Example 1 shows the situation when I open my main activity for the first time, the viewModelScope.launch
in my MainActivityViewModel works as ...
0
votes
1
answer
2k
views
Why Android lifecycleScope can be automatically cancelled
When reading this post about lifecycle-aware CoroutineScope, I read the following:
Every Lifecycle comes with a LifecycleScope, which lets you launch
coroutines that are automatically cancelled once ...
0
votes
2
answers
172
views
Kotlin, How do I dismiss an App by pressing the Back button Activity which is not the launcher activity in android?
I have a login activity with navigation fragments , one is the splash screen and then navigate to Login Fragment this is the Launcher Activity and it checks if the user is already logged in and then ...
0
votes
2
answers
288
views
UninitializedPropertyAccessException: lateinit property binding has not been initialized
I am getting a random crash "lateinit property binding has not been initialized". Most of the time it's working fine but a few time randomly we are getting this crash on crashlytics.
Please ...