开发者

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

开发者 https://www.devze.com 2023-02-15 02:47 出处:网络
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

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

精彩评论

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