Installing and Using Smartphone SDK Add-ons

Smartphone SDK add-ons like Samsung, Sony Ericsson, HTC or Motorola, when added to the Android™ SDK, allows you to run and debug your applications on an emulated smartphone. Note that while the device image that the add-on presents does not necessarily reflect the look of the actual device, from a functional standpoint it should be a fairly faithful emulation of the actual handset.


Before installing the add-on, the Android SDK must be installed. The Android SDK can be downloaded from Android Developers.

Android SDK installation instruction is found at:

Download add-ons

Here list of Samsung, Sony Ericsson, HTC and Motorola add-ons for SDK. If you found other smartphone add-ons for Android SDK just put to the comment below.

  1. Samsung –
  2. Sony Ericsson –
  3. HTC –
  4. Motorola –

Installing the add-on

To install the smartphone SDK add-on, simply download it, extracting the add-on files, and copy the resulting directory into the “add-ons” directory of the Android SDK that you are using.

Note: If add-ons for Android SDK or Eclipse™ were running when you copied the SDK add-on, you will need to restart it for the add-on to be recognized by your development environment.

For this tutorial, I installing Sony Ericsson Xperia X10 SDK Add-on.

Creating an AVD

In order to launch the emulator using the add-on, an AVD must be created.

To create an AVD using the command line, do the following (you may need to be within the Android SDK’s “tools” directory):

  1. Before creating an AVD, the ID number that specifies the add-ons for the Android™ SDK must be found. To check if add-ons exist:
    android target list

    List of add-ons

    In the above case, 6 is the ID number for the add-on. If multiple add-ons have been installed, more
    targets are shown in the list.

  2. To create an AVD for add-ons for the Android™ SDK, the right ID number from the list must be chosen. Create an AVD by specifying the ID number of the add-on, in this example, ID = 6. Command for creating AVD:
    android create avd -n  -t 
    android create avd -n X10 -t 6

    In this example, the AVD is named “X10“. The AVD can be given any name.

To create it from within Android AVD Manage.

  1. Select Android AVD Manager from the Window menu. The Android Virtual Devices Manager dialog appears.
  2. Enter “X10” (or whatever name you want to give the new AVD) in the Name field.
  3. From the Target list, select the target named for the “X10 (Sony Ericsson Mobile Communications) – API Level 4”.
  4. If you want the emulated device to have an SD card, in the SDCard field either specify the path and filename to a file containing an existing SD card image, or specify a size (such as 64M) to create a new, empty SD card image. Leave this field blank if the device isn’t to have an SD card.
  5. From the Skin list, select default skin named for X10 target device.
  6. Click Create AVD.
  7. Click OOK to close the dialog.

Launching the emulator

If you start a Run or Debug configuration that specifies a SDK add-on AVD as the target device, the AVD will be automatically launched for you. If you want to start the AVD without deploying an application to it, you can do so either from the command line. From the command line, the following command will start the AVD named “X10”:

emulator -avd X10

Or, for Sony Erricson Add-ons:

emulator @X10

The word after “@” is the name of the created AVD, “X10” in this example.  To start from Android SDK and AVD Manager SDK select the AVD from within the Device Management view and click Start.

Of course it you set a hardware like GPS available on the emulator the running application will detect that it is available, but this ‘virtual’ GPS naturally can not provide a GPS coordinate on its own. On the next tutorial, I write about how to set location on emulator.

Related Posts: