blob: 00f0b8d665e2d6f56d2374b23c7e0c958ec17beb [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001page.title=Other Tools
2@jd:body
3
Scott Mainc7d1ee82009-09-22 18:21:32 -07004<p>The sections below describe other tools that you can use when building
5Android applications. </p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08006
Scott Mainc7d1ee82009-09-22 18:21:32 -07007<p>All of the tools are included in the Android SDK and are accessible from the
8<code>&lt;sdk&gt;/tools/</code> directory.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08009
10<h2>Contents</h2>
11
12<dl>
Dirk Dougherty874c7312009-04-21 15:00:34 -070013 <dt><a href="#android">android</a></dd>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080014 <dt><a href="#mksdcard">mksdcard</a></dt>
15 <dt><a href="#dx">dx</a></dt>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080016</dl>
17
Dirk Dougherty874c7312009-04-21 15:00:34 -070018<a name="activitycreator"></a>
19<h2 id="android">android</h2>
20
Scott Mainc7d1ee82009-09-22 18:21:32 -070021<p>{@code android} is an important development tool that lets you:</p>
Dirk Dougherty874c7312009-04-21 15:00:34 -070022
Scott Mainc7d1ee82009-09-22 18:21:32 -070023<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 Doughertyee58d1b2009-10-16 15:25:15 -070029 <a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</li>
Scott Mainc7d1ee82009-09-22 18:21:32 -070030</ul>
Dirk Dougherty874c7312009-04-21 15:00:34 -070031
Scott Mainc7d1ee82009-09-22 18:21:32 -070032<p>If you develop in Eclipse with the ADT plugin, you can perform
33these tasks directly from the IDE. To create
34Android projects and AVDs from Eclipse, see <a href="{@docRoot}guide/developing/eclipse-adt.html">Developing
35In Eclipse</a>. To update your SDK from Eclipse, see
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070036<a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.
Scott Mainc7d1ee82009-09-22 18:21:32 -070037</p>
Dirk Dougherty874c7312009-04-21 15:00:34 -070038
39
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080040<a name="mksdcard"></a>
41
42<h2>mksdcard</h2>
43
Scott Mainc7d1ee82009-09-22 18:21:32 -070044<p>The mksdcard tool lets you quickly create a FAT32 disk image that you can
45load in the emulator, to simulate the presence of an SD card in the device.
46Here is the usage for mksdcard:</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080047
48<pre>mksdcard [-l label] &lt;size&gt;[K|M] &lt;file&gt;</pre>
49
Dirk Dougherty874c7312009-04-21 15:00:34 -070050<p>The table below lists the available options/arguments</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080051
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 Mainc7d1ee82009-09-22 18:21:32 -070066You can also specify size in kilobytes or megabytes, by appending a "K" or "M" to
67&lt;size&gt;. For example, <code>1048576K</code>, <code>1024M</code>.</td>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080068</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 Mainc7d1ee82009-09-22 18:21:32 -070077<p>Once you have created the disk image file, you can load it in the emulator at
78startup 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 Project9066cfe2009-03-03 19:31:44 -080080
81<pre>emulator -sdcard &lt;file&gt;</pre>
82
83<a name="dx"></a>
84
85<h2>dx</h2>
86
Scott Mainc7d1ee82009-09-22 18:21:32 -070087<p>The dx tool lets you generate Android bytecode from .class files. The tool
88converts target files and/or directories to Dalvik executable format (.dex) files,
89so that they can run in the Android environment. It can also dump the class files
90in a human-readable format and run a target unit test. You can get the usage and
91options for this tool by using <code>dx --help</code>.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080092
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080093
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080094
95