From 5afdc97f2e41845e7ddf512814771d4cdf134171 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 (cherry picked from commit 9e86f6139b62dbc87b7ea97cedf847c847657829) --- docs/html/guide/topics/connectivity/usb/host.jd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/html/guide') 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

    -- cgit v1.1