Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
0 answers
70 views

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

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 ...
A.G.'s user avatar
  • 2,247
2 votes
0 answers
46 views

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

Future<void> onAppClose({required String userId}) async { await FirebaseFirestore.instance .collection(FirebaseConstants.usersCollection) .doc(userId) .update({'...
0 votes
1 answer
57 views

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

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

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

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

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

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

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

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

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

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

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 ...

15 30 50 per page
1
2 3 4 5
...
48

AltStyle によって変換されたページ (->オリジナル) /