This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我正在android4.2 环境中开发一个项目。在此,我使用的是 android usb 附件 api。但我想让我的项目与android2.3.5 兼容。为此,我正在检查 api 版本。如果它高于或等于 api 级别 12 意味着,我需要使用 "android.hardware.usb.UsbAccessory". 否则,我使用"com.android.future.usb.UsbAccessory"。但我的程序限制使用其中一个导入语句。请帮我解决这个问题。