Hey all. People are requesting bluetooth toggle support in my More
Icons Widget. The problem is I have to keep things compatible with
Android 1.5 (SDK level 3) and above. There also are about 9500 free
or pay bluetooth toggles that work on SDK 3 and above so I know it
must be possible.
The only examples I can find are for Android 1.0
(context.getSystemSerivce("bluetooth")) which is no longer available
in Android 1.5, and of course I have found examples of how to do it if
you are using hte Android 2.0 (SDK 5) SDK.
I know that I will have to use reflection to access the
android.bluetooth.BluetoothDevice class for SDK 3 phones and then I
will have to also use reflection for SDK 5 and greater phones. I've
done my best to get it working for a few days but it has been a no-go.
Does anyone have any good examples of this or know of any open source
bluetooth toggles that I can take a look at. I'm dead in the water
here.
Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en