Android USB Functions?

会有一股神秘感。 提交于 2019-12-06 03:34:14

问题


Are there any USB functions for Android devices (all user devices, not rooted)?
I'm curious because I might want to make an app that puts things through USB


回答1:


Short answers are no and people are gagging for it, but depending on what you intend to do, the Android bluetooth implementation is much simpler. (and you can treat Bluetooth as a basic serial connection if so inclined)




回答2:


I know that this is rather an old question but I thought I'd add an answer representing current state given that it still shows up in searches.

Since API level 12 USB support has been added to the platform. It however a bit of a minefield as to whether a given device actually supports USB host mode and exactly what that means.

More details can be found on the Google Android documentation pages




回答3:


Yes like Neil said you can try and use the Host API's. Otherwise you can use the Accessory Development Toolkit: http://developer.android.com/tools/adk/adk2.html

Kevin



来源:https://stackoverflow.com/questions/2695386/android-usb-functions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!