activity-lifecycle
ListView disappears after return from activity
I have two screens the one which list the records in a listview\"ListView Screen\" & the second which is used for showing a specific record \"specific record screen\".[详细]
2023-04-13 03:07 分类:问答Android VoiceRecognition onActivityResult
we are trying to implement a simple quiz which should be controlled by VoiceRecognition. We have to Activities one QuestionActivity and one AnswerActivity. In the QuestionActivity the question is read[详细]
2023-04-12 13:45 分类:问答Activity lifecycle - onCreate called on every re-orientation
I have开发者_如何学C a simple activity that loads a bitmap in onCreate. I find that if I rotate the device I can see from the logs that onCreate called again. In fact, because all instance variables a[详细]
2023-04-10 02:14 分类:问答Which actions does the back button/back key on Android trigger?
I am really confused. I have read that the back button calls onDestroy() can close up your currently-running activity[详细]
2023-04-01 22:26 分类:问答Android: return to main activity problems
In my main activity I have a menu and when a menu option is selected an Intent is created and a new activity is started.When that acti开发者_Python百科vity completes the process should return back to[详细]
2023-04-01 12:23 分类:问答When is savedInstanceState really used?
I\'m new to Android, and i\'m having some troubles with savedInstanceState and managing the lifecycle.[详细]
2023-03-31 14:49 分类:问答Do timer functions automatically stop when an activity is paused?
I have a timer that causes a function to run every minute, on the minute.When the activity is paused will the timer continue to run.I dont want it to run as it is unecessary.[详细]
2023-03-30 20:20 分类:问答Android Intent lifecycle
I\'m a bit confused about my intent lifecycle. I have a file browser which lets me nav to a particular graphic file, I fire up an intent to view that file and away we go. Back key returns me to the fi[详细]
2023-03-28 05:27 分类:问答Why is NPE thrown when finishing Activity?
I have an error that has been driving me crazy for days.Unfortunately, I can not show you the code for two reason, my boss will not appreciate it and the codebase is too large to share.The error occur[详细]
2023-03-22 02:54 分类:问答How to save the sate of my Activity
I have an EditText followed by a list view under it. So it works like this - when u type something in the edit text it shows items from the list which match the text above.[详细]
2023-03-19 09:44 分类:问答