Issue
I have been working with this issue for two days now, as I am new to Android development. I am using Eclipse, and when I choose to launch the app, the AVD starts, the screen is black for a few seconds and then the animation "Android" appears and nothing happens past that point. I thought it was loading at first until I have left it opened for nearly an hour and nothing ever happens.
The console reads
[2013-01-01 20:52:57 - FirstApp] Android Launch!
[2013-01-01 20:52:57 - FirstApp] adb is running normally.
[2013-01-01 20:52:57 - FirstApp] Performing com.example.firstapp.MainActivity activity launch
[2013-01-01 20:52:58 - FirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_Nexus_S_by_Google'
[2013-01-01 20:52:58 - FirstApp] Launching a new emulator with Virtual Device 'AVD_for_Nexus_S_by_Google'`
As I said, I am new to this and if I fail to mention any other necessary components it is merely because I do not know where else to search for this solution.
Thanks for any of your help.
Solution
This can be a very annoying issue for all the Android beginners. At first, I too used to stare at the 'Android' animation for minutes and hours and just wonder.
WORKING WITH ANDROID EMULATOR:
1. Always start the AVD before directly running an application.
Emulators usually take a considerable amount of time to load before you can
actually try to run an app.
2. Change the timeout settings by Window-->Preferences-->Android-->DDMS-->ADB
Connection TimeOut. Set it to say 50000.
3. Once the AVD has loaded fully(there is usually a homescreen kind of display
after the 'Android' animation you mentioned), then run your app as right-click-->
Run as Android Application
4.Sometimes, there is a keypad lock on the emulator display just like a phone, so
you might have to manually unlock the display before you can see the running app
Hope this helps.
Answered By - Rahul Bisht
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.