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