The Android emulator will allow you to test your application as though it was being displayed on a real device. If you do not have a 10” tablet running Android the emulator will allow you to create this device. You are not just limited to tablets. You can also create and emulated phones with smaller screens and devices all within Eclipse. There is a plugin called the ADT that includes the emulator to deploy and run your application.
Before you launch the emulator you need to so some configuration work. You need to create an Android Virtual Device (AVD). By creating the AVD you are setting various device settings including the screen resolution, hardware options and the size of the storage on the device. There are more options than this as you will see later.
To create a new AVD following complete the following.
Make sure you have Eclipse open and click on the icon shown below.
Click New when the Android Device Manager window appears.
Click Create AVD.
Enter the NexusS in the AVD name and select Device. Select Nexus S(4.0”, 480×800: hdpi) from the drop down list.
The target platform is the version of the Android SDK features that we want to use. Select Android 4.3 – API Level 18.
Select the CPU/ABI drop down and select ARM *armeabi-v7a).
The other configuration settings are optional so ignore this for now.
The NexusS device that you have created should now appear in the list.
Highlight NexusS and click the start button.
The emulator will take a few minutes to start up and on some older machine it can take over 5 minutes to load and configure. While the emulator is configuring itself it will display the Android logo.
When the emulator has loaded it is recommended that you minimise the emulator because you do not want to wait for the emulator to load each time.
Close the AVD Manager. The emulator will still run in the background for when you deploy your apps.
You should now have a working emulator. If you have any problems just post a message and we will do our best to help you out.
Next Android Game Programming Week 2- Day 2.0 Deploying the App >>