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.
精彩评论