Monday, August 3, 2009

More commands on -AVD to create, delete, move, update...

Usage:

=====================================================
android [global options] action [action options]
=====================================================
Global options:
-h --help This help.
-s --silent Silent mode: only errors are printed out.
-v --verbose Verbose mode: errors, warnings and informational messages are printed. =====================================================
Valid actions are composed of a verb and an optional direct object:
================================================

- list : Lists existing targets or virtual devices.
Action "list ":
Lists existing targets or virtual devices.
Options:
No options

=====================================================
- list avd : Lists existing Android Virtual Devices.
Action "list avd":
Lists existing Android Virtual Devices.
Options:
No options

=====================================================
- list target : Lists existing targets.
Action "list target":
Lists existing targets.
Options:
No options

=====================================================
- create avd : Creates a new Android Virtual Device.
Action "create avd":
Creates a new Android Virtual Device.
Options:
-t --target Target id of the new AVD [required]
-c --sdcard Path to a shared SD card image, or size of a new sdcard for the
new AVD
-p --path Location path of the directory where the new AVD will be created

-n --name Name of the new AVD [required]
-f --force Force creation (override an existing AVD)
-s --skin Skin of the new AVD
====================================================
- move avd : Moves or renames an Android Virtual Device.

Action "move avd":
Moves or renames an Android Virtual Device.
Options:
-p --path New location path of the directory where to move the AVD
-n --name Name of the AVD to move or rename [required]
-r --rename New name of the AVD to rename

====================================================
- delete avd : Deletes an Android Virtual Device.
Action "delete avd":
Deletes an Android Virtual Device.
Options:
-n --name Name of the AVD to delete [required]

for eg.

D:\android-sdk_1.5_windows_16july\tools>android delete avd -n avd51
AVD 'avd51' deleted.

====================================================
- update avd : Updates an Android Virtual Device to match the folders of a new SDK.
Action "update avd":
Updates an Android Virtual Device to match the folders of a new SDK.
Options:
-n --name Name of the AVD to update [required]
====================================================
- create project: Creates a new Android Project.
Action "create project":
Creates a new Android Project.
Options:
-k --package Package name [required]
-n --name Project name
-a --activity Activity name [required]
-t --target Target id of the new project [required]
-p --path Location path of new project [required]
=====================================================
- update adb : Updates adb to support the USB devices declared in the SDK add -ons.
Action "update adb":
Updates adb to support the USB devices declared in the SDK add-ons.
Options:
No options

=====================================================

No comments: