android - Cannot able to run my application? -


i'm following book "professional android 2 application development" reto meier. created "helloworld" project. use eclipse ide. if run application simulator starts application cannot run. following information displayed in console:

[2011-07-03 16:03:28 - hello_world] ------------------------------ [2011-07-03 16:03:28 - hello_world] android launch! [2011-07-03 16:03:28 - hello_world] adb running normally. [2011-07-03 16:03:28 - hello_world] performing com.paad.helloworld.hello_worldactivity activity launch [2011-07-03 16:03:28 - hello_world] automatic target mode: preferred avd 'device2_1' not available. launching new emulator. [2011-07-03 16:03:28 - hello_world] launching new emulator virtual device 'device2_1' [2011-07-03 16:03:56 - hello_world] new emulator found: emulator-5554 [2011-07-03 16:03:56 - hello_world] waiting home ('android.process.acore') launched... [2011-07-03 16:05:12 - hello_world] emulator-5554 disconnected! cancelling 'com.paad.helloworld.hello_worldactivity activity launch'! 

i cannot understand why application not able run.

did wait until emulator finished starting? log posted may indicate closed emulator before started up. start takes while, depending on device configuration have chosen (up 5 minutes me, if try launch tablet emulator). while starting, goes small text saying "android" android text-logo , after up

and did unlock them emulator? emulator behaves real phone, there usual key-lock in place. have release first, depending on android version using either have drag handle sideways or press menu key (e.g. in android 1.6). if phone locked, cant launch app. there should info text on screen telling do.

after got that, try run app again. should start. please note can leave emulator open once started it. if run application, newest version uploaded emulator , executed. no need restart emulator time (which takes ages).


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -