开发者

Android ADK software that works in 2.3.4 and 3.1+ versions

开发者 https://www.devze.com 2023-03-30 16:57 出处:网络
I made an ADK app that works in Android 2.3.4, but I need to make it work 开发者_StackOverflowwith tablets as well. Since the API changes, how can I manage this?

I made an ADK app that works in Android 2.3.4, but I need to make it work 开发者_StackOverflowwith tablets as well. Since the API changes, how can I manage this?

For example in 2.3.4 the method is getAccessory and in 3.1 is openAccessory.

Any suggestions?


As far as I know, the method calls are not different. Only the package names are. 3.1 also supports the APIs contained in the com.android.future.usb package, so if you compile against the Google Add-on APIs in 3.1 as well, the same application should work. Let me know if you need more guidance.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号