135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lypage.title=Android Open Accessory Protocol 235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly@jd:body 335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<!-- 5a9293255c279ef106e11223a518ad8b40fb58f2fClay Murphy Copyright 2013 The Android Open Source Project 635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly Licensed under the Apache License, Version 2.0 (the "License"); 835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly you may not use this file except in compliance with the License. 935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly You may obtain a copy of the License at 1035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 1135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly http://www.apache.org/licenses/LICENSE-2.0 1235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 1335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly Unless required by applicable law or agreed to in writing, software 1435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly distributed under the License is distributed on an "AS IS" BASIS, 1535f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly See the License for the specific language governing permissions and 1735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly limitations under the License. 1835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly--> 1935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 2035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<p> Android Open Accessory support allows external USB hardware (an Android USB accessory) to interact 2135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lywith an Android-powered device in a special accessory mode. When an Android-powered powered device 2235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lyis in accessory mode, the connected accessory acts as the USB host (powers the bus and enumerates 2335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lydevices) and the Android-powered device acts in the USB accessory role. Android USB accessories are 2435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lyspecifically designed to attach to Android-powered devices and adhere to the Android Open Accessory 2535f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert LyProtocol, that allows them to detect Android-powered devices that support 2635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lyaccessory mode. Accessories must also provide 500mA at 5V for charging power. Many previously 2735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lyreleased Android-powered devices are only capable of acting as a USB device and cannot initiate 2835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lyconnections with external USB devices. Android Open Accessory support overcomes this limitation 2935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lyand allows you to build accessories that can interact with an assortment of Android-powered 3035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lydevices by allowing the accessory to initiate the connection.</p> 3135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 3235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 3335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<p><strong>Note:</strong> Accessory mode is ultimately dependent on the device's hardware and not all devices 3435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lysupport accessory mode. Devices that support accessory mode can be filtered using a <code><uses-feature></code> 3535f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lyelement in your corresponding application's Android manifest. For more information, see the 3635f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<a href="http://developer.android.com/guide/topics/connectivity/usb/accessory.html#manifest">USB Accessory</a> 3735f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lydeveloper guide.</p> 3835f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 3935f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 4035f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly<p>Android Open Accessory support is included in Android 3.1 (API Level 12) and higher, and supported 4135f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Lythrough an <a href="https://developers.google.com/android/add-ons/google-apis/">Add-On Library</a> in Android 4235f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly2.3.4 (API Level 10) and higher.</p> 4335f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 4435f2fda6aaeaf733ab68a3b7f7ccc67f009c09a9Robert Ly 45