Skinning the Android emulator with HTC HERO

This forum post describes how to download and install the HTC HERO skin for the Android emulator:

Below is the settings I used when creating the hardware profile. I believe they are mostly correct except I could not find the settings for cache so I just went with the defaults (bold is what I typed):

./android create avd –target 2 –name hero_av –skin HTC_HERO
Android 1.5 is a basic Android platform.
Do you wish to create a custom hardware profile [no]yes

Device ram size: The amount of physical RAM on the device, in megabytes.
hw.ramSize [96]:288

Touch-screen support: Whether there is a touch screen or not on the device.
hw.touchScreen [yes]:yes

Track-ball support: Whether there is a trackball on the device.
hw.trackBall [yes]:yes

Keyboard support: Whether the device has a QWERTY keyboard.
hw.keyboard [yes]:no

DPad support: Whether the device has DPad keys
hw.dPad [yes]:no

GSM modem support: Whether there is a GSM modem in the device.
hw.gsmModem [yes]:yes

Camera support: Whether the device has a camera.
hw.camera [no]:yes

Maximum horizontal camera pixels
hw.camera.maxHorizontalPixels [640]:480

Maximum vertical camera pixels
hw.camera.maxVerticalPixels [480]:320

GPS support: Whether there is a GPS in the device.
hw.gps [yes]:yes

Battery support: Whether the device can run on a battery.
hw.battery [yes]:yes

Accelerometer: Whether there is an accelerometer in the device.
hw.accelerometer [yes]:yes

Audio recording support: Whether the device can record audio
hw.audioInput [yes]:yes

Audio playback support: Whether the device can play audio
hw.audioOutput [yes]:yes

SD Card support: Whether the device supports insertion/removal of virtual SD Cards.
hw.sdCard [yes]:yes

Cache partition support: Whether we use a /cache partition on the device.
disk.cachePartition [yes]:yes

Cache partition size
disk.cachePartition.size [66MB]:

Created AVD ‘hero_avd’ based on Android 1.5

I set my HTC Hero handset in debug mode when attached to usb. So when I attached the HTC Hero handset using usb and running the Android application from Eclipse the application was automatically started on the handset as well as the Android emulator.

Update: fixed a missing space charachter before –skin in the android create statement.

Reklamer
Tagged with: ,
Publisert i Uncategorized
2 comments on “Skinning the Android emulator with HTC HERO
  1. Arild Strømhylden sier:

    After upgrading and running the android create command of the 1.6 the following question is also asked:Abstracted LCD density: Must be one of 120, 160 or 240. A value used to roughly describe the density of the LCD screen for automatic resource/asset selection.hw.lcd.density [160]:I would be glad if someone leaves a comment with the correct value of this parameter.

    Liker

Legg igjen en kommentar

Fyll inn i feltene under, eller klikk på et ikon for å logge inn:

WordPress.com-logo

Du kommenterer med bruk av din WordPress.com konto. Logg ut /  Endre )

Google+-bilde

Du kommenterer med bruk av din Google+ konto. Logg ut /  Endre )

Twitter-bilde

Du kommenterer med bruk av din Twitter konto. Logg ut /  Endre )

Facebookbilde

Du kommenterer med bruk av din Facebook konto. Logg ut /  Endre )

w

Kobler til %s

%d bloggere like this: