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


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

Other Threads

1. WebGL support

Are there any plans for WebGL on Android?  Or is it all going to be 
Renderscript?  What will be the best way to do no touch deployment for 3D 
games, etc. on Android?

Like the following WebGL demo on Chrome/FireFox



2. Mod: Member Milis ID-Android Tembus Angka 6500

Rekan-rekan komunitas id-android yang berbahagia, hari ini (Senin),
28 Februari 2011, jumlah member (basis E-mail) milis id-android tembus angka
6500. Kalau kita flashback, bulan Desember 2009 jumlah kita masih ratusan
dibawah angka 1000, dalam waktu 15 bulan jumlah member id-android
sudah tembus 6500.
Semoga Komunitas ID-Android tetap bermanfaat buat semua.

Join: id-android+subscr...@googlegroups.com

 http://forum.android.or.id/   (Under Construction)


Agus Hamonangan


3. apakah ada yg tahu, kapan Samsung Galaxy GIO dijual di Indonesia ?

4. Hp android yg kuat buat pes 2011

5. Is there any way to know Canvas is using hardware scaling or not?

6. [WTI] Motorola Xoom Overclock to 1.5Ghz, hasil nya ?

7. help suhu, suhi n teman android