First obstacle, when run my Android app in emulator, the error as shown below is displayed in the Eclipse console.
[2013-02-27 12:33:22 - Emulator] Failed to allocate memory: 8 [2013-02-27 12:33:22 - Emulator] This application has requested the Runtime to terminate it in an unusual way. [2013-02-27 12:33:22 - Emulator] Please contact the application's support team for more information.
How to solve?
- Right click on your Android project, select "Run As" -> "Run Configurations"
- Select "Target" tab
- Select the AVD that your are using, curently I'm using "AVD_for_Nexus_7_by_Google", click on "Manager" button
- In the new dialog Window, select "AVD_for_Nexus_7_by_Google" and click on "Edit" button
- Change the "Memory Options" RAM from 1024 to 512.
Voila, I have loaded my app on emulator successfully.