| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | page.title=Other Tools |
| 2 | @jd:body |
| 3 | |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 4 | <p>The sections below describe other tools that you can use when building |
| 5 | Android applications. </p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 6 | |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 7 | <p>All of the tools are included in the Android SDK and are accessible from the |
| 8 | <code><sdk>/tools/</code> directory.</p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 9 | |
| 10 | <h2>Contents</h2> |
| 11 | |
| 12 | <dl> |
| Dirk Dougherty | 874c731 | 2009-04-21 15:00:34 -0700 | [diff] [blame] | 13 | <dt><a href="#android">android</a></dd> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 14 | <dt><a href="#mksdcard">mksdcard</a></dt> |
| 15 | <dt><a href="#dx">dx</a></dt> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 16 | </dl> |
| 17 | |
| Dirk Dougherty | 874c731 | 2009-04-21 15:00:34 -0700 | [diff] [blame] | 18 | <a name="activitycreator"></a> |
| 19 | <h2 id="android">android</h2> |
| 20 | |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 21 | <p>{@code android} is an important development tool that lets you:</p> |
| Dirk Dougherty | 874c731 | 2009-04-21 15:00:34 -0700 | [diff] [blame] | 22 | |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 23 | <ul> |
| 24 | <li>Create, delete, and view Android Virtual Devices (AVDs). See |
| 25 | <a href="{@docRoot}guide/developing/tools/avd.html">Android Virtual Devices</a>.</li> |
| 26 | <li>Create and update Android projects. See |
| 27 | <a href="{@docRoot}guide/developing/other-ide.html">Developing in Other IDEs</a>.</li> |
| 28 | <li>Update your Android SDK with new platforms, add-ons, and documentation. See |
| Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 29 | <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</li> |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 30 | </ul> |
| Dirk Dougherty | 874c731 | 2009-04-21 15:00:34 -0700 | [diff] [blame] | 31 | |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 32 | <p>If you develop in Eclipse with the ADT plugin, you can perform |
| 33 | these tasks directly from the IDE. To create |
| 34 | Android projects and AVDs from Eclipse, see <a href="{@docRoot}guide/developing/eclipse-adt.html">Developing |
| 35 | In Eclipse</a>. To update your SDK from Eclipse, see |
| Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 36 | <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>. |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 37 | </p> |
| Dirk Dougherty | 874c731 | 2009-04-21 15:00:34 -0700 | [diff] [blame] | 38 | |
| 39 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 40 | <a name="mksdcard"></a> |
| 41 | |
| 42 | <h2>mksdcard</h2> |
| 43 | |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 44 | <p>The mksdcard tool lets you quickly create a FAT32 disk image that you can |
| 45 | load in the emulator, to simulate the presence of an SD card in the device. |
| 46 | Here is the usage for mksdcard:</p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 47 | |
| 48 | <pre>mksdcard [-l label] <size>[K|M] <file></pre> |
| 49 | |
| Dirk Dougherty | 874c731 | 2009-04-21 15:00:34 -0700 | [diff] [blame] | 50 | <p>The table below lists the available options/arguments</p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 51 | |
| 52 | <table> |
| 53 | <tr> |
| 54 | <th>Argument</th> |
| 55 | <th>Description</th> |
| 56 | </tr> |
| 57 | |
| 58 | <tr> |
| 59 | <td><code>-l</code></td> |
| 60 | <td>A volume label for the disk image to create. </td> |
| 61 | </tr> |
| 62 | |
| 63 | <tr> |
| 64 | <td><code>size</code></td> |
| 65 | <td>An integer that specifies the size (in bytes) of disk image to create. |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 66 | You can also specify size in kilobytes or megabytes, by appending a "K" or "M" to |
| 67 | <size>. For example, <code>1048576K</code>, <code>1024M</code>.</td> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 68 | </tr> |
| 69 | |
| 70 | <tr> |
| 71 | <td><code>file</code></td> |
| 72 | <td>The path/filename of the disk image to create. </td> |
| 73 | </tr> |
| 74 | |
| 75 | </table> |
| 76 | |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 77 | <p>Once you have created the disk image file, you can load it in the emulator at |
| 78 | startup using the emulator's -sdcard option. For more information, see |
| 79 | <a href="{@docRoot}guide/developing/tools/emulator.html">Android Emulator</a>.</p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 80 | |
| 81 | <pre>emulator -sdcard <file></pre> |
| 82 | |
| 83 | <a name="dx"></a> |
| 84 | |
| 85 | <h2>dx</h2> |
| 86 | |
| Scott Main | c7d1ee8 | 2009-09-22 18:21:32 -0700 | [diff] [blame] | 87 | <p>The dx tool lets you generate Android bytecode from .class files. The tool |
| 88 | converts target files and/or directories to Dalvik executable format (.dex) files, |
| 89 | so that they can run in the Android environment. It can also dump the class files |
| 90 | in a human-readable format and run a target unit test. You can get the usage and |
| 91 | options for this tool by using <code>dx --help</code>.</p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 92 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 93 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 94 | |
| 95 | |