1page.title=Managing AVDs with AVD Manager 2parent.title=Managing Virtual Devices 3parent.link=index.html 4@jd:body 5 6 <div id="qv-wrapper"> 7 <div id="qv"> 8 <h2>In this document</h2> 9 10 <ol> 11 <li><a href="#createavd">Creating an AVD</a> 12 <ol> 13 <li><a href="#hardwareopts">Hardware options</a></li> 14 </ol> 15 </li> 16 </ol> 17 </div> 18 </div> 19 20 <p>The AVD Manager is an easy to use user interface to manage your AVD (Android Virtual Device) 21 configurations. An AVD is a device configuration for the Android emulator that allows you to 22 model different configurations of Android-powered devices. When you start the AVD Manager in Eclipse 23 or navigate to your SDK's {@code tools/} directory and execute 24 <code>android avd</code>. You will see the AVD Manager as shown in 25 figure 1.</p> 26 27 <img src="{@docRoot}images/avd-manager.png"> 28 29 <p class="img-caption"><strong>Figure 1. </strong>Screenshot of the AVD Manager. </p> 30 31 <p>From the main screen, you can create, delete, repair and start AVDs as well as see the details 32 of each AVD. </p> 33 34 35 <h2 id="createavd">Creating an AVD</h2> 36 37 <p>You can create as many AVDs as you would like to test on. It is recommended that you test your 38 applications on all API levels higher than the target API level for your application.</p> 39 40 <p>To create an AVD:</p> 41 42 <ol> 43 <li>Start the AVD Manager: 44 45 <ul> 46 <li>In Eclipse: select <strong>Window > AVD Manager</strong>, or click 47 the AVD Manager icon in the Eclipse toolbar.</li> 48 49 <li>In other IDEs: Navigate to your SDK's <code>tools/</code> directory and execute the 50 <code>android</code> tool with no arguments.</li> 51 </ul> 52 </li> 53 54 <li><p>In the <em>Virtual Devices</em> panel, you'll see a list of existing AVDs. Click 55 <strong>New</strong> to create a new AVD. The <strong>Create New AVD</strong> dialog appears.</p> 56 57 <img src="{@docRoot}images/developing/avd-dialog.png" alt="AVD Dialog"> 58 <p class="img-caption"><strong>Figure 2.</strong> Screenshot of the Create AVD window</p> 59 </li> 60 61 <li>Fill in the details for the AVD. 62 63 <p>Give it a name, a platform target, an SD card size, and a skin (HVGA is default). You can 64 also add specific hardware features of the emulated device by clicking the 65 <strong>New...</strong> button and selecting the feature. For a list of hardware features, 66 see <a href="#hardwareopts">Hardware options</a>.</p> 67 68 <p class="note"><strong>Note:</strong> Be sure to define a target for your AVD that satisfies 69 your application's Build Target (the AVD platform target must have an API Level equal to or 70 greater than the API Level that your application compiles against).</p> 71 </li> 72 73 <li>Click <strong>Create AVD</strong>.</li> 74 </ol> 75 76 <p>Your AVD is now ready and you can either close the AVD Manager, create more AVDs, or 77 launch an emulator with the AVD by selecting a device and clicking <strong>Start</strong>.</p> 78 79<h3 id="hardwareopts">Hardware options</h3> 80<p>If you are creating a new AVD, you can specify the following hardware options for the AVD 81to emulate:</p> 82 83 <table> 84 <tr> 85 <th>Characteristic</th> 86 87 <th>Description</th> 88 89 <th>Property</th> 90 </tr> 91 92 <tr> 93 <td>Device ram size</td> 94 95 <td>The amount of physical RAM on the device, in megabytes. Default value is "96".</td> 96 97 <td>hw.ramSize</td> 98 </tr> 99 100 <tr> 101 <td>Touch-screen support</td> 102 103 <td>Whether there is a touch screen or not on the device. Default value is "yes".</td> 104 105 <td>hw.touchScreen</td> 106 </tr> 107 108 <tr> 109 <td>Trackball support</td> 110 111 <td>Whether there is a trackball on the device. Default value is "yes".</td> 112 113 <td>hw.trackBall</td> 114 </tr> 115 116 <tr> 117 <td>Keyboard support</td> 118 119 <td>Whether the device has a QWERTY keyboard. Default value is "yes".</td> 120 121 <td>hw.keyboard</td> 122 </tr> 123 124 <tr> 125 <td>DPad support</td> 126 127 <td>Whether the device has DPad keys. Default value is "yes".</td> 128 129 <td>hw.dPad</td> 130 </tr> 131 132 <tr> 133 <td>GSM modem support</td> 134 135 <td>Whether there is a GSM modem in the device. Default value is "yes".</td> 136 137 <td>hw.gsmModem</td> 138 </tr> 139 140 <tr> 141 <td>Camera support</td> 142 143 <td>Whether the device has a camera. Default value is "no".</td> 144 145 <td>hw.camera</td> 146 </tr> 147 148 <tr> 149 <td>Maximum horizontal camera pixels</td> 150 151 <td>Default value is "640".</td> 152 153 <td>hw.camera.maxHorizontalPixels</td> 154 </tr> 155 156 <tr> 157 <td>Maximum vertical camera pixels</td> 158 159 <td>Default value is "480".</td> 160 161 <td>hw.camera.maxVerticalPixels</td> 162 </tr> 163 164 <tr> 165 <td>GPS support</td> 166 167 <td>Whether there is a GPS in the device. Default value is "yes".</td> 168 169 <td>hw.gps</td> 170 </tr> 171 172 <tr> 173 <td>Battery support</td> 174 175 <td>Whether the device can run on a battery. Default value is "yes".</td> 176 177 <td>hw.battery</td> 178 </tr> 179 180 <tr> 181 <td>Accelerometer</td> 182 183 <td>Whether there is an accelerometer in the device. Default value is "yes".</td> 184 185 <td>hw.accelerometer</td> 186 </tr> 187 188 <tr> 189 <td>Audio recording support</td> 190 191 <td>Whether the device can record audio. Default value is "yes".</td> 192 193 <td>hw.audioInput</td> 194 </tr> 195 196 <tr> 197 <td>Audio playback support</td> 198 199 <td>Whether the device can play audio. Default value is "yes".</td> 200 201 <td>hw.audioOutput</td> 202 </tr> 203 204 <tr> 205 <td>SD Card support</td> 206 207 <td>Whether the device supports insertion/removal of virtual SD Cards. Default value is 208 "yes".</td> 209 210 <td>hw.sdCard</td> 211 </tr> 212 213 <tr> 214 <td>Cache partition support</td> 215 216 <td>Whether we use a /cache partition on the device. Default value is "yes".</td> 217 218 <td>disk.cachePartition</td> 219 </tr> 220 221 <tr> 222 <td>Cache partition size</td> 223 224 <td>Default value is "66MB".</td> 225 226 <td>disk.cachePartition.size</td> 227 </tr> 228 229 <tr> 230 <td>Abstracted LCD density</td> 231 232 <td>Sets the generalized density characteristic used by the AVD's screen. Default value is 233 "160".</td> 234 235 <td>hw.lcd.density</td> 236 </tr> 237 </table> 238 239