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. MediaPlayer pause on loop

Hi all,

I am having an issue with a looping audio file using MediaPlayer.  I
am developing a realtime game and have a 100K MP3 file I want to loop
as background music.  The size of the file means I can't pre-load into
memory (using SoundPool) so I am using the MediaPlayer to stream the

All works fine, however if I set the stream to loop
(MediaPlayer#setLooping(true)) when the stream gets to the end and
MediaPlayer loops, I get a distinct pause in gameplay.  Everything
seems to hang for a good chunk of time (~100ms) presumably while
MediaPlayer re-seeks to the start of the audio file, and this is
killing my framerate and making the game unplayable at these points.

There doesn't seem to be a way to configure any memory buffers etc on
the MediaPlayer, so I'm wondering if I am using the wrong approach?

Any other ways to run continuous background music?




2. How much time per task?

Lets say I have 3 cpu bound activities running, and not much sensor/io/
radio activity. Just for puposes of this example. My model of how
linux works is: the clock ticks every ms. All ready tasks are aged one
tick. Some might become ready to run because they have 'aged' while
waiting. Each running task has a quantum How long is it 100ms? So my 3
competing crunchers would ea get 100ms in a round robin sort of
fashion? Any of this wrong? Any of it right? Anyone know if the clock
tick is 1ms or 10ms? Thanks. (I'm more of an application type than a
system type)


3. Android Blur Background

4. Android Market woes... the press finally catch on

5. method.getAnnotation( ) or method.isAnnotationPresent( ) not working

6. Mod, WTS: Pre Order Motorola Droid

7. new interpreter for Android