Android Tutorial

(avery) #1

By : Ketan Bhimani


56 


  1. Choose a build target. We want a basic Android 2.2 device, so choose
    Android 2.2 from the drop-down menu.

  2. Choose an SD card capacity. This can be in kilobytes or megabytes and
    takes up space on your hard drive. Choose something reasonable, such as
    1 gigabyte (1024M). If you’re low on drive space or you know you won’t
    need to test external storage to the SD card, you can use a much smaller
    value, such as 64 megabytes.

  3. Choose a skin. This option controls the different resolutions of the
    emulator. In this case, use the WVGA800 screen. This skin most directly
    correlates to the popular Android handsets, such as the HTC Nexus One
    and the Evo 4G, both of which are currently sitting on my desk.

  4. Click the Create AVD button, and wait for the operation to complete.

  5. Click Finish. Because the AVD manager formats the memory allocated for
    SD card images, creating AVDs with SD cards could take a few moments.


Creating a Launch Configuration for Your Snake Project

Next, you must create a launch
configuration in Eclipse to configure
under what circumstances the Snake
application builds and launches. The
launch configuration is where you
configure the emulator options to use
and the entry point for your
application.

Creating a new AVD in Eclipse.

You can create Run Configurations
and Debug Configurations separately,
each with different options. These
configurations are created under the
Run menu in Eclipse (Run, Run Configurations and Run, Debug
Configurations).
Free download pdf