diff options
author | Scott Main <smain@google.com> | 2014-11-27 10:08:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-27 10:08:51 +0000 |
commit | 4a45a44152c965363a4689befdcbd57177e48831 (patch) | |
tree | 64188f5b517dd9251343900d70379da6c0ccbb00 /docs/html/tools | |
parent | 576e248f3ca32576ed3c37dadf6a4f90dc6b4f59 (diff) | |
parent | 2995bd8033ecbf4e1a5b3392ec27008d2d184b8a (diff) | |
download | frameworks_base-4a45a44152c965363a4689befdcbd57177e48831.zip frameworks_base-4a45a44152c965363a4689befdcbd57177e48831.tar.gz frameworks_base-4a45a44152c965363a4689befdcbd57177e48831.tar.bz2 |
am 2995bd80: am 5a27b4b8: am fc793074: Merge "docs:advmgr-updates" into lmp-docs
* commit '2995bd8033ecbf4e1a5b3392ec27008d2d184b8a':
docs:advmgr-updates
Diffstat (limited to 'docs/html/tools')
-rw-r--r-- | docs/html/tools/devices/managing-avds.jd | 154 |
1 files changed, 120 insertions, 34 deletions
diff --git a/docs/html/tools/devices/managing-avds.jd b/docs/html/tools/devices/managing-avds.jd index d3bbfdc..9afa88a 100644 --- a/docs/html/tools/devices/managing-avds.jd +++ b/docs/html/tools/devices/managing-avds.jd @@ -12,32 +12,23 @@ parent.link=index.html <ol> <li><a href="#hardwareopts">Hardware options</a></li> </ol> - </li> + </li> </ol> </div> </div> <p>The AVD Manager is an easy to use user interface to manage your AVD (Android Virtual Device) configurations. An AVD is a device configuration for the Android emulator that allows you to - model different configurations of Android-powered devices. When you start the AVD Manager in Eclipse - or navigate to your SDK's {@code tools/} directory and execute - <code>android avd</code>. You will see the AVD Manager as shown in - figure 1.</p> - - <img src="{@docRoot}images/avd-manager.png"> - - <p class="img-caption"><strong>Figure 1. </strong>Screenshot of the AVD Manager. </p> - - <p>From the main screen, you can create, delete, repair and start AVDs as well as see the details - of each AVD. </p> - - - <p class="note"><strong>Note:</strong> The emulator system images include experimental -64-bit system images along with standard 32-bit system images. The 64-bit system images -require the Intel x86 Emulator Accelerator (HAXM) Rev.5 which can be downloaded from the -<a href="{@docRoot}tools/help/sdk-manager.html">SDK Manager</a> <em>Extras</em> folder. - </p> - + model different configurations of Android-powered devices. When you start the AVD Manager in Android + Studio or navigate to your SDK's {@code tools/} directory and execute + <code>android avd</code>, you will see the AVD Manager main screen with your current virtual + devices. You can right-click an existing AVD to perform actions on the AVD, such as delete, + duplicate, wipe data, show on disk, and display details. </p> + + <img src="{@docRoot}images/studio-avdmgr-firstscreen.png" alt=""> + <p class="img-caption"><strong>Figure 1.</strong> AVD Manager.</p> + + <h2 id="createavd">Creating an AVD</h2> <p>You can create as many AVDs as you would like to test on. It is recommended that you test your @@ -49,38 +40,68 @@ require the Intel x86 Emulator Accelerator (HAXM) Rev.5 which can be downloaded <li>Start the AVD Manager: <ul> - <li>In Eclipse: select <strong>Window > AVD Manager</strong>, or click - the AVD Manager icon in the Eclipse toolbar.</li> + <li>In Android Studio: select <strong>Tools > Android > AVD Manager</strong>, or click + the AVD Manager icon <img src="{@docRoot}images/ui/studio-avdmgr-icon.png"style="vertical-align:bottom;margin:0;height:19px"> in the Android Studio toolbar.</li> + <li>In other IDEs: Navigate to your SDK's <code>tools/</code> directory and execute the <code>android</code> tool with no arguments.</li> </ul> </li> - <li><p>In the <em>Virtual Devices</em> panel, you'll see a list of existing AVDs. Click - <strong>New</strong> to create a new AVD. The <strong>Create New AVD</strong> dialog appears.</p> - - <img src="{@docRoot}images/developing/avd-dialog.png" alt="AVD Dialog"> - <p class="img-caption"><strong>Figure 2.</strong> Screenshot of the Create AVD window</p> + <li><p>Click <strong>Create Virtual Device</strong> to create an AVD. The + <strong>Select Hardware</strong> dialog appears.</p> + + <img src="{@docRoot}images/studio-avdmgr-selecthdwr.png"> + <p class="img-caption"><strong>Figure 2.</strong> Select Hardware window.</p> + </li> + + <li><p>Select the device category and form factor. Click <strong>Edit Device</strong> to modify + an existing AVD, or click <strong>New Hardware Profile</strong> to create a new hardware profile. + Click <strong>Next</strong> to continue. </p> + <p>The hardware profile includes settings for screen size, camera, memory options,input type, + and sensors. For a list of hardware features, see <a href="#hardwareopts">Hardware options</a>.</p> + + <img src="{@docRoot}images/studio-avdmgr-confighardwareprof.png" alt=""> + <p class="img-caption"><strong>Figure 3.</strong> Configure Hardware window.</p> + </li> + + <li>Select the desired system image. Click <strong>Install Latest Version</strong> to download + a new system image. Click <strong>Next</strong> to continue. </li> <li>Fill in the details for the AVD. - <p>Give it a name, a platform target, an SD card size, and a skin (HVGA is default). You can - also add specific hardware features of the emulated device by clicking the - <strong>New...</strong> button and selecting the feature. For a list of hardware features, - see <a href="#hardwareopts">Hardware options</a>.</p> + <p>Give it a name, device type, platform target, image size, orientation, and emulator + performance. Click <strong>Show Advanced Settings</strong> to assign a custom skin to the + hardware profile and other advanced settings for the device type. + </p> + + <p class="note"><strong>Tip:</strong>Store custom skins in an easily accessible directory, + such as <em>~/skins</em>. From information about custom skins, see + <a href="#skins">Skins</a>. </p> - <p class="note"><strong>Note:</strong> Be sure to define a target for your AVD that satisfies + <img src="{@docRoot}images/studio-avdmgr-configavd.png" alt=""> + <p class="img-caption"><strong>Figure 4.</strong> Configure AVD window.</p> + + <p class="note"><strong>Tip:</strong> Be sure to define a target for your AVD that satisfies your application's Build Target (the AVD platform target must have an API Level equal to or greater than the API Level that your application compiles against).</p> </li> - <li>Click <strong>Create AVD</strong>.</li> + <li>Click <strong>Finish</strong>.</li> </ol> <p>Your AVD is now ready and you can either close the AVD Manager, create more AVDs, or - launch an emulator with the AVD by selecting a device and clicking <strong>Start</strong>.</p> + manage an emulator with the AVD by clicking an icon in the <strong>Actions</strong> column: + </p> + + <ul> + <li>Start an AVD <img src="{@docRoot}images/tools/studio-avdmgr-action-icon.png" alt=""></li> + <li>Edit an AVD <img src="{@docRoot}images/tools/studio-avdmgr-actions-edit-icon.png" alt=""></li> + <li>Perform management actions <img src="{@docRoot}images/tools/studio-avdmgr-actions-dropdown-icon.png" alt=""></li> + </ul> + <h3 id="hardwareopts">Hardware options</h3> <p>If you are creating a new AVD, you can specify the following hardware options for the AVD @@ -242,3 +263,68 @@ to emulate:</p> </tr> </table> + +<h3 id="skins">Using Custom Emulator Skins</h3> +<p>A custom Android emulator skin is a collection of files that enable you to customize the visual +and control elements of an emulator display. Custom emulator skins enable you to define variations +of emulation properties, such as the use of a trackball or touchscreen, to match your device +customizations. Each custom emulator skin contains:</p> + <ul> + <li>A <code>hardware.ini file</code> for initialization settings</li> + <li>Layout files for supported orientations (landscape, portrait) and physical configuration</li> + <li>Image files for display elements, such as background, keys and buttons</li> + </ul> +<p>To create and use a custom skin:</p> + <ol> + <li>Create a skin folder in an easily accessible location, such as <em>~/skins</em>. </li> + <li>Define the skin orientation and configuration settings in a file called <code>layout</code> + in the skin folder. +<pre> +parts { + + device { + display { + width 1080 + height 1920 + x 0 + y 0 + } + } + + portrait { + background { + image background_port.png + } + + buttons { + power { + image button_vertical.png + x 1229 + y 616 + } + } + } + ... +} + +</pre></li> + + <li>Creates a <code>hardware.ini</code> file for the skin-specific properties that determine + emulator specifications and behavior. For a complete list of emulator properties, see + <a href="{@docRoot}tools/devices/managing-avds-cmdline.html">Managing AVDs from the Command + Line</a>. For example:</li> +<pre> +# skin-specific hardware values +hw.lcd.density=213 +vm.heapSize=48 +hw.ramSize=1024 +hw.keyboard.lid=no +hw.mainKeys=no +</pre> + <li>Add the bitmap files of the device images to the skin folder. </li> + <li>Archive the files in the skin folder. </li> + <li>Create a new AVD and select the archive file as a custom skin. </li> + </ol> + +<p>You can now run the AVD with a custom skin for testing and viewing your app. </p> + |