From 9e86f6139b62dbc87b7ea97cedf847c847657829 Mon Sep 17 00:00:00 2001 From: Glenn Kasten Date: Thu, 31 Jul 2014 11:11:11 -0700 Subject: Fix USB typos Change-Id: Iefa610a81e9155dcfc687c514611bb7dbba5d7f9 --- docs/html/guide/topics/connectivity/usb/host.jd | 8 ++++---- docs/html/tools/adk/adk.jd | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/html/guide/topics/connectivity/usb/host.jd b/docs/html/guide/topics/connectivity/usb/host.jd index 355dd2d..f957b60 100644 --- a/docs/html/guide/topics/connectivity/usb/host.jd +++ b/docs/html/guide/topics/connectivity/usb/host.jd @@ -31,7 +31,7 @@ page.title=USB Host
  • AdbTest
  • MissleLauncher
  • + "{@docRoot}resources/samples/USB/MissileLauncher/index.html">MissileLauncher @@ -283,7 +283,7 @@ while(deviceIterator.hasNext()){

    Obtaining permission to communicate with a device

    -

    Before communicating with the USB device, your applicaton must have permission from your +

    Before communicating with the USB device, your application must have permission from your users.

    Note: If your application uses an @@ -388,7 +388,7 @@ mUsbManager.requestPermission(device, mPermissionIntent); should have more logic to correctly find the correct interface and endpoints to communicate on and also should do any transferring of data in a different thread than the main UI thread:

    -private Byte[] bytes
    +private Byte[] bytes;
     private static int TIMEOUT = 0;
     private boolean forceClaim = true;
     
    @@ -409,7 +409,7 @@ connection.bulkTransfer(endpoint, bytes, bytes.length, TIMEOUT); //do in another
       

    For more information, see the AdbTest sample, which shows how to do asynchronous bulk transfers, and the MissleLauncher sample, which + "{@docRoot}resources/samples/USB/MissileLauncher/index.html">MissileLauncher sample, which shows how to listen on an interrupt endpoint asynchronously.

    Terminating communication with a device

    diff --git a/docs/html/tools/adk/adk.jd b/docs/html/tools/adk/adk.jd index 7e75c11..3f45c3c 100644 --- a/docs/html/tools/adk/adk.jd +++ b/docs/html/tools/adk/adk.jd @@ -331,7 +331,7 @@ href="http://arduino.cc/en/Main/ArduinoBoardADK">Arduino Mega ADK (for EU na
  • Install the application to your device.
  • Connect the ADK board (USB-A) to your Android-powered device (micro-USB). Ensure that the - power cable to the accessory is plugged in or that the micro-USB port on the accesory is + power cable to the accessory is plugged in or that the micro-USB port on the accessory is connected to your computer for power (this also allows you to monitor the ADK board). When connected, accept the prompt that asks for whether or not to open the DemoKit application to connect to the accessory. If the prompt does not show up, connect and -- cgit v1.1