Hello World in eclipse - shutting down the emulator

by lenb » Wed, 10 Feb 2010 06:46:53 GMT

Sponsored Links
I'm using eclipse Version: 3.5.1 with ADT on debian.  I've built Hello
World.  No problem; however, I can't shut down the emulated device.  I
press the power off button, which leads to a window with 4 choices.
One is power off which I select.  This gives a message saying: 'Your
phone will shutdown'.  I select OK which leads to a window which
displays 'Power Off' Your phone will shut down.  at the top and a
graphic which appears to indicate that the shutdown is underway.

Unfortunately, it never completes.

If I kill the emulator, when I restart, the emulation begins in a
state which shows a clock, a message that it is charging (50%), an
open lock, a sound icon, ....  In this state, the Hello World message
never appears - at least I can't figure out how to get the device into
a state where it will appear.

In order to get back into a state where the message will appear, I
have to recreate my avd using: android create avd --target 2 --name
my_avd --force

Can anyone shed some light?  Thanks.

[2010-02-07 14:09:02 - HelloAndroid]------------------------------
[2010-02-07 14:09:02 - HelloAndroid]Android Launch!
[2010-02-07 14:09:02 - HelloAndroid]adb is running normally.
[2010-02-07 14:09:02 - HelloAndroid]Performing
com.example.helloandroid.HelloAndroid activity launch
[2010-02-07 14:09:02 - HelloAndroid]Automatic Target Mode: launching
new emulator with compatible AVD 'my_avd'
[2010-02-07 14:09:02 - HelloAndroid]Launching a new emulator with
Virtual Device 'my_avd'
[2010-02-07 14:09:02 - HelloAndroid]New emulator found: emulator-5554
[2010-02-07 14:09:02 - HelloAndroid]Waiting for HOME
('android.process.acore') to be launched...
[2010-02-07 14:09:21 - HelloAndroid]HOME is up on device
[2010-02-07 14:09:21 - HelloAndroid]Uploading HelloAndroid.apk onto
device 'emulator-5554'
[2010-02-07 14:09:21 - HelloAndroid]Installing HelloAndroid.apk...
[2010-02-07 14:09:28 - HelloAndroid]Success!
[2010-02-07 14:09:28 - HelloAndroid]Starting activity
com.example.helloandroid.HelloAndroid on device
[2010-02-07 14:09:30 - HelloAndroid]ActivityManager: Starting: Intent
{ cmp=com.example.helloandroid/.HelloAndroid }


Hello World in eclipse - shutting down the emulator

by Temitope Akinwande » Wed, 10 Feb 2010 06:48:58 GMT

 When you are on the lock screen, double click and you should get the
device open, just as you would an adroid phone.



Sponsored Links

Other Threads

1. Emulator Orientation Change on Mac

>From the emulator keyboard command docs:
  Switch to previous layout orientation (for example, portrait,
landscape)      KEYPAD_7, F11
  Switch to next layout orientation (for example, portrait, landscape)
        KEYPAD_9, F12

These don't seem to work on a Mac.  Normally the F11 and F12 keys are
already mapped to expose and dashboard, but even if you turn those
off, it just beeps at you.  While I can test the resulting
orientations from the command line arguments, it's looking like I have
no way to test change of orientation via the emulator.

Can anyone verify that is true?


2. https post

Are there any good examples of doing an https post on Android?


3. Source Code for HelloGoogleMaps Tutorial

4. onDraw not getting called for a custom view derived from view in layout.

5. Maven and Emma

6. problem for send sms

7. Monkeyrunner extension library