I am new to development.
I installed the Eclipse and Andoid SDK. But I can not get the emulator to work. I tried notepad code sample and Android Hello code. Every time I try to run any application, it just hangs on the clock screen (the screen also says that it is 50% charged and has a lock).
Here is the console information for an example notepad application.
[2011-03-11 15:27:17 - samplenotpad] ------------------------------ [2011-03-11 15:27:17 - samplenotpad] Android Launch! [2011-03-11 15:27:17 - samplenotpad] adb is running normally. [2011-03-11 15:27:17 - samplenotpad] Performing com.example.android.notepad.NotesList activity launch [2011-03-11 15:27:17 - samplenotpad] Automatic Target Mode: launching new emulator with compatible AVD 'myEmulator3' [2011-03-11 15:27:17 - samplenotpad] Launching a new emulator with Virtual Device 'myEmulator3' [2011-03-11 15:27:19 - samplenotpad] New emulator found: emulator-5556 [2011-03-11 15:27:19 - samplenotpad] Waiting for HOME ('android.process.acore') to be launched... [2011-03-11 15:27:33 - Emulator] emulator: emulator window was out of view and was recentred [2011-03-11 15:27:33 - Emulator] [2011-03-11 15:28:17 - samplenotpad] HOME is up on device 'emulator-5556' [2011-03-11 15:28:17 - samplenotpad] Uploading samplenotpad.apk onto device 'emulator-5556' [2011-03-11 15:28:17 - samplenotpad] Installing samplenotpad.apk... [2011-03-11 15:29:09 - samplenotpad] Success! [2011-03-11 15:29:10 - samplenotpad] Starting activity com.example.android.notepad.NotesList on device emulator-5556
Then nothing ...
I have already tried the following steps from this page, but still not working.
http://developer.android.com/guide/appendix/faq/troubleshooting.html#eclipse
Eclipse does not talk to the emulator
When communication between Eclipse and the emulator does not occur, symptoms may include: nothing happens when you click run, an emulator hanging while waiting for a debugger to connect, or errors that Eclipse reports cannot find the emulator or shell. The most common symptom is that when you press the start button, the emulator starts (or is already running), but the application does not start.
You may find that any of these steps will fix the problem, and with practice, you can probably figure out which one you need for your specific problem, but for a start the safest option is to run them all in order
- Close the emulator if it is running.
- Make sure that all processes of the emulator are killed (sometimes they can freeze, use ps on unix or mac or task manager in the process view on windows).
- Exit Eclipse From the command line, enter: adb kill-server, start Eclipse and try again
I wonder if I need to try uninstalling and reinstalling some component?
I am running Windows 7.
Any help that is greatly appreciated is as simple as possible in English, please :-)
android android-emulator
Alice
source share