4. Coding part:
Before coding and debugging the program, we are going to create a virtual machine. For this run a command shell (Windows-> Start Menu-> Run-> cmd) and then go to the folder of the SDK (chdir Eclipse \ SDK \ android \ 1.1). Then type the following command: android target list. By issuing this command all the devices available and their version will be displayed. We will choose the version 1.1.
Android Available targets:
Code:
id: 1
Name: Android 1.1
Type: Platform
API level: 2
Skins: HVGA (default), HVGA-L, HVGA-P-L QVGA, QVGA-P
id: 2
Name: Android 1.5
Type: Platform
API level: 3
Skins: HVGA (default), HVGA-L, HVGA-P-L QVGA, QVGA-P
id: 3
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Description: Android + Google APIs
Based on Android 1.5 (API level 3)
Libraries:
Com.google.android.maps (maps.jar)
API for Google Maps
Skins: QVGA-P-L HVGA, HVGA (default), QVGA-L,-P HVGA
Then type the following command:
Code:
avd create android : "name of the phone" name : target
So we have just created an Android emulator supports the framework 1.1.
Bookmarks