I don't get any event such as onResume, onStart when the screen is turned on

by Yuie. » Tue, 16 Nov 2010 11:00:28 GMT


Sponsored Links
 The below is my trace log:

--------------------------------
(start activity)
onCreate
OnStart
OnResume
(running something)
...
...(other events)
...
onStop (screen is off)
--------------------------------

when my phone screen goes off, my App. gotta onStop, and there is no
longer event occurred.

When my screen turn back on, and I can see my App again (Of
Course !!!)
But, there is no event (ex>onResume, onStart...) I can get from the
App.
I expected to get some event such as onResume or onStart or any event

Is anybody know why I didn't get such events?

--



I don't get any event such as onResume, onStart when the screen is turned on

by Kumar Bibek » Tue, 16 Nov 2010 13:38:35 GMT


  http://developer.android.com/reference/android/app/Activity.html #ActivityLifecycle

After onStop, onRestart should be called. Check if your onRestart is getting
called or not.




>


Sponsored Links


I don't get any event such as onResume, onStart when the screen is turned on

by Dianne Hackborn » Tue, 16 Nov 2010 13:53:00 GMT


 The only changes from the screen turning off and on and onPause() when it is
turning off and onResume() when it is turning on.





>>



Other Threads

1. Error in AndroidManifest.xml and some other xml files

I'm trying to compile the source coded by sdk 1.5, and I had already
replaced the android.jar from sdk 1.0 rc2.
Some new import have already been with no problem, but the xml file
still have error that can't recognize some tag like
"android:windowSoftInputMode" or "android:inputType".
Do any one have good solution to migrate the sdk from 1.0 to 1.5?? or
teach me how to solve the xml's problem.
My development environment is under Eclipse, if the xml can't be
compiled then the R.java wouldn't be generated...

--~--~---------~--~----~------------~-------~--~----~

2. how to emulate sim card in emulate tools

Hi,

I need help, how to emulate sim card in emulate tools?

could anybody tell me the steps about to config it?

--~--~---------~--~----~------------~-------~--~----~

3. Using directions from com.google.android.maps API

4. What is a good way to download a webpage for offline reading?

5. how to implement a Full-screen handwriting input method

6. Convert the AMR

7. Droid Fonts License: does it allows to redistribute them?