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


Other Threads

1. Problem Running My App

Hi, I've created an Android app on the Eclipse SDK, but when I try to
run it, the emulator opens but the app doesn't load. On the Eclipse
console, it says:

[2008-07-03 17:04:25 - VideoPlayer] ------------------------------
[2008-07-03 17:04:25 - VideoPlayer] Android Launch!
[2008-07-03 17:04:25 - VideoPlayer] adb is running normally.
[2008-07-03 17:04:25 - VideoPlayer] Launching:
org.apache.android.VideoPlayer
[2008-07-03 17:04:25 - VideoPlayer] Automatic Target Mode: launch
emulator.
[2008-07-03 17:04:25 - VideoPlayer] Launching a new emulator.
[2008-07-03 17:04:28 - VideoPlayer] New emulator found: emulator-
tcp-5555
[2008-07-03 17:05:13 - VideoPlayer] HOME is up on device 'emulator-
tcp-5555'
[2008-07-03 17:05:13 - VideoPlayer] Pushing VideoPlayer.apk to /data/
app on device 'emulator-tcp-5555'
[2008-07-03 17:05:19 - VideoPlayer] Failed to install VideoPlayer.apk
on 'emulator-tcp-5555': timeout

What's wrong?

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

2. Android security application developing in Boston

Hi all,

I am new to developing on the Android platform and I am here in
Boston, MA especially to develop an application on Android in the
security domain.
But there have been problems with the university we (my colleague and
me) should go to. Now we are looking for some places to go, where we
have the needed infrastructure to develop and some kind and motivating
persons. ;)

Best,
Maennel

PS: I am sorry to post this message in this group, but I think there
could be some interested persons who are working in the area of Boston
and who have the needed "influence" to arrange us a place to develop
our app.

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

3. USB GPS

4. Can Android be easily ported to ARM11 MPCore?

5. problem in adding animation to imageview

6. image database

7. Making a fullscreen video player