Android Projects

Android Development Books

Wednesday

Device Configurations Android Tablet Virtual - Part 2

Step 9: Preparing Eclipse

If you haven’t already, update your installation to include both the SDK Platform Android Honeycomb Preview and the GALAXY Tab add-on. To do this, go to the Android SDK and AVD Manager within Eclipse. On the Available Packages tab, find the Honeycomb Preview in the Android Repository list and the Samsung package within the Third party Add-ons list. The following figure shows what these look like. Install both of these items, as well as any pre-requisites they request.
Tablet AVD - Figure 1

Step 10: Creating an AVD to Emulate the Samsung Galaxy Tab

The Samsung Galaxy Tab was the first official Android tablet with the Android Market. As such, it is a popular target device for developers looking to target tablet users. Interestingly, the Galaxy Tab is also the first third-party device to show up with additional development content within the Android SDK and AVD Manager. This makes it somewhat simpler to create an AVD for. Please note that these steps require that you install the items from Step 0.
The important specs of this device, from an Emulator perspective, are:
  • Target platform: Android 2.2, Galaxy Tab
  • Screen Info: High Density, despite the fact that it’s not, this is what it reports, WSVGA (1024×600)
  • No keyboard
  • Has dual cameras
Let’s create an AVD configuration called GalaxyTab:
  1. Within Eclipse, launch the Android SDK and AVD Manager
  2. Select “Virtual Devices” from the left-hand options
  3. Click the “New” button to create a new AVD configuration
  4. Name the AVD: “GalaxyTab”
  5. Select the Target: “GALAXY Tab Addon (Samsung Electronics Co., Ltd.) – API Level 8”
  6. Input the SD Card Size: “2048 MiB” (or a suitable value for your uses)
  7. Keep the default Skin Details: “Default (GALAXY Tab)”
  8. Keep the default Hardware Property for Abstracted LCD Density: “240” (despite the real density being 170dpi)
  9. Also leave the rest of the default hardware properties alone
  10. Add a Hardware Property for Device ram size: “512”
  11. Save the AVD
This AVD will create the best depiction of the Galaxy Tab device. Note that the LCD density setting won’t affect the look of the emulator on your screen. When launching the emulator in a sized window, it’s only the actual pixel count of the target device that matters. The density settings affect what resources are loaded. As for why there’s some confusion over resolution/density configuration details, it stems from the fact that Samsung found that high density resources looked better on the tablet than medium density. This isn’t surprising, seeing as how high density resources are usually larger and on the big, higher resolution screen you’d want larger resources.
Here are the details of the AVD:
Tablet AVD - Figure 2
And here’s the AVD next to the actual tablet device:
Tablet AVD - Figure 3

Step 11: Creating an AVD to Emulate the Motorola Xoom Tablet

Although the Motorola Xoom hasn’t shipped as of this writing, all of the specifications we need are readily available. As a launch device for Honeycomb, expectations are that it will be very close to the stock Android experience. This means the emulator will do a good job for most developers trying to port their apps for this device prior to its availability. However, as with any pre-release hardware, it is possible that the hardware or software details will change before release.
The important specifications for this device, from an Emulator perspective, are:
  • Target platform: Android 3.0 Honeycomb
  • Screen info: Medium density, extra large, WXGA (1280×800)
  • No keyboard
  • Dual camera support
Let’s create an AVD configuration called MotorolaXoom:
  1. Within Eclipse, launch the Android SDK and AVD Manager
  2. Select “Virtual Devices” from the left-hand options
  3. Click the “New” button to create a new AVD configuration
  4. Name the AVD: “MotorolaXoom”
  5. Select the Target: Android Honeycomb (as of this writing, that’s “Android Honeycomb (Preview) – API Level Honeycomb”)
  6. Input the SD Card Size: “2048 MiB” (or a suitable value for your uses)
  7. Keep the default Skin Details: “Default (WXGA)”
  8. Keep the default Hardware Property for Abstracted LCD Density: “149” (this will come up as medium density)
  9. Add another Hardware Property for Device RAM size: “1024”
  10. Add another Hardware Property for Keyboard Support: “No”
  11. Add another Hardware Property for Camera Support: “Yes”
  12. You can fill in a few other properties, as found at Motorola’s developer info site, see the screen shot below, too
  13. Save the AVD
This AVD will create, effectively, a preview depiction of the Motorola Xoom. When the final SDK comes out, the AVD can be updated with the edit option. The developer site, link above, also gives good information on the OpenGL support of the hardware.
This particular AVD, and any based on the Honeycomb Preview SDK, are surprisingly slow. Google says they’re working on that in the preview notes. Let’s wish them speed and luck on getting an update out that is much faster.
The following screenshot shows the details for this AVD:
Tablet AVD - Figure 4
And here’s an image of the emulator next to the Nexus S, for scale:
Tablet AVD - Figure 5

If you want more information about this article plz click here.

Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments

Thanks for your comment

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

Related Posts Plugin for WordPress, Blogger...
© Google Android Lovers
Designed by BlogThietKe Cooperated with Duy Pham
Released under Creative Commons 3.0 CC BY-NC 3.0