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. Hide Activity

   I want to show a progress dialog, while I check something in the
background and display a message finally and exit the app. Can I hide
the Activity in the background? I tried using
android:theme="@android:style/Theme.NoDisplay" in the manifest file,
but the window shows up when I show the progress dialog or the

Thank you,


2. sending email with a file attached that is not on sdcard

I have a voice messaging app that needs to send an email with the
audio file attached when user records and presses send. I dont want to
have the user see a mail client and push send in it. He's already
aware my app is going to send an email and has pressed a send button
in the app. The audio file is in the app folder area, not on the

Using ACTIONSEND and Intent.EXTRA_STREAM (a) requires the file to be
on sdcard and (b) displays a mail client UI. I found a library called
javamail_lbmod.jar but it is over 1MB large; I feel thats overkill for
what I need.

Anyone know of a small library or other solution for my issue. I could
live with the sdcard requirement if I could just suppress the mail
client UI.


3. query button on phone

4. Akhirnya....CM5 for Dream/Magic -> yup, its Eclair!!!

5. How to detect key held down

6. 14-year-old Android Developer:

7. Update sold Wts milestone murmer