power button hitting onCreate

by scottrick49 » Fri, 23 Apr 2010 08:05:46 GMT


Sponsored Links
 In my application, if you press the power button on the phone, i am
seeing:

onPause
onDestroy
onCreate
onResume
onPause

getting called in that order; I can't figure out why the app is
getting created again and then re-paused.  Obviously I am doing
something incorrect, but I am not sure what.  Anybody seen anything
like this before?

--



power button hitting onCreate

by Dianne Hackborn » Fri, 23 Apr 2010 09:15:47 GMT


 When you turn off the device, the lock screen is displayed.  This typically
forces the display to a particular orientation.  If the screen is not
currently in that orientation, it will need to be changed, and the top
activity's configuration appropriately changed to match.




>


Sponsored Links