diff options
Diffstat (limited to 'docs/html/tools/device.jd')
| -rw-r--r-- | docs/html/tools/device.jd | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/docs/html/tools/device.jd b/docs/html/tools/device.jd index a1fb817..89b3857 100644 --- a/docs/html/tools/device.jd +++ b/docs/html/tools/device.jd @@ -5,6 +5,7 @@ page.title=Using Hardware Devices <div id="qv"> <h2>In this document</h2> <ol> + <li><a href="#device-developer-options">Enabling On-device Developer Options</a></li> <li><a href="#setting-up">Setting up a Device for Development</a> <ol> <li><a href="#VendorIds">USB Vendor IDs</a></li> @@ -30,9 +31,8 @@ device directly from Eclipse or from the command line with ADB. If you don't yet have a device, check with the service providers in your area to determine which Android-powered devices are available.</p> -<p>If you want a SIM-unlocked phone, then you might consider a Nexus phone. To find a place -to purchase the Nexus S and other Android-powered devices, visit <a -href="http://www.google.com/phone/detail/nexus-s">google.com/phone</a>.</p> +<p>If you want a SIM-unlocked phone, then you might consider a Nexus phone. To purchase a +Nexus phone, visit the <a href="https://play.google.com/store/devices">Google Play</a> store.</p> <p class="note"><strong>Note:</strong> When developing on a device, keep in mind that you should still use the <a @@ -44,6 +44,29 @@ allow you to verify that your application functions properly on different versio platform, in different screen sizes and orientations, and more.</p> +<h2 id="developer-device-options" style="margin-bottom: 0px;">Enabling On-device Developer Options</h2> + +<img src="/images/tools/dev-options-inmilk.png" alt="" style="float:right;margin-left:30px"> + +<p>Android-powered devices have a host of developer options that you can +access on the phone, which let you:</p> +<ul> + <li>Enable debugging over USB.</li> + <li>Quickly capture bug reports onto the device.</li> + <li>Show CPU usage on screen.</li> + <li>Draw debugging information on screen such as layout bounds, + updates on GPU views and hardware layers, and other information.</li> + <li>Plus many more options to simulate app stresses or enable debugging options.</li> +</ul> +<p>To access these settings, open the <em>Developer options</em> in the +system Settings. On Android 4.2 and higher, the Developer options screen is +hidden by default. To make it visible, go to +<b>Settings > About phone</b> and tap <b>Build number</b> seven times. Return to the previous +screen to find Developer options at the bottom.</p> + + + + <h2 id="setting-up">Setting up a Device for Development</h2> <p>With an Android-powered device, you can develop and debug your Android applications just as you @@ -90,11 +113,11 @@ Ubuntu Linux: <p>Use this format to add each vendor to the file:<br/> <code>SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"</code> <br /><br /> - + In this example, the vendor ID is for HTC. The <code>MODE</code> assignment specifies read/write permissions, and <code>GROUP</code> defines which Unix group owns the device node. </p> - + <p class="note"><strong>Note:</strong> The rule syntax may vary slightly depending on your environment. Consult the <code>udev</code> documentation for your system as needed. For an overview of rule syntax, see @@ -138,7 +161,7 @@ target your connected device.</p> <p>This table provides a reference to the vendor IDs needed in order to add USB device support on Linux. The USB Vendor ID is the value given to the -<code>ATTR{idVendor}</code> property in the rules file, as described +<code>ATTR{idVendor}</code> property in the rules file, as described above.</p> <table> @@ -193,6 +216,10 @@ above.</p> <td><code>12d1</code></td> </tr> <tr> + <td>Intel</td> + <td><code>8087</code></td> + </tr> + <tr> <td>K-Touch</td> <td><code>24e3</code></td> </tr> @@ -277,6 +304,10 @@ above.</p> <td><code>0fce</code></td> </tr> <tr> + <td>Sony Mobile Communications</td> + <td><code>0fce</code></td> + </tr> + <tr> <td>Teleepoch</td> <td><code>2340</code></td> </tr> |
