Tips for Using the Android Emulator

The Android emulator is slow as molasses in January. If at all possible, get an Android phone for development. I purchased a prepaid, unlocked Google Nexus S from Break Wind Mobile for C$380, a good investment.

If you must use the emulator, you should configure it to use more memory. Go to Run->Run Configurations…->Target tab for your app. For “Additional Emulator Command Line Options”, insert “-partition-size 1024”. You may also want to check off “Wipe User Data” so that from time to time, you can start with a clean slate.

Starting the emulator can be problematic. An “emulator disconnected” error is common. So once you have it up and running, try not to shut it down; you can repeatedly upload your app to the emulator for testing.

I also found that having a command line window open with ‘adb logcat’ running helps to stabilize the situation. In Windows, go to where android-sdks\platform-tools is and run ‘adb logcat’. You can also filter results with ‘adb logcat | find “your_app_tag”‘.

Published in: on January 18, 2012 at 4:24 pm  Leave a Comment  

The URI to TrackBack this entry is:

RSS feed for comments on this post.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: