开发者

How to support Bluetooth for both Android 1.x and 2.x at the same time?

I can access the Android bluetooth api via reflection in Android 1.x and I can also access bluetooth api 2.x using the build in Android class but I can't support both at the same time in my App. Like having the reflection to use the old bluetooth api to support 1.x and at the sametime using the new api for 2.0+ with a开发者_如何转开发 2.0 Android build.


Check out the methods in Build.VERSION (http://developer.android.com/reference/android/os/Build.VERSION.html)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜