[Q] Android 2.2 progammically tell if Bluetooth Headset connected on start

I am programming for android 2.2 API Level 8 and I am trying to find out if there is currently a bluetooth headset connected when my application starts initially. I can not seem to find a solution to this issue.

Once my application is up and running I can listen for BluetoothDevice.ACTION_ACL_CONNECTED and BluetoothDevice.ACTION_ACL_DISCONNECTED as denoted here which works great mind you. But I can't figure out how to tell before the BroadcastReceiver is on if there is currently a bluetooth headset connected.

I am hoping that someone out there already has a solution to this issue for API Level 8. I do realize that in API 11 there are some new classes such as BluetoothProfile and BluetoothHeadset that could probably do this in 1 line of code, but again I am trying to do this in API Level 8

I am willing to try anything at this point.

Thanks in advance

-H

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by schaefer.marty
18 minutes ago
Nexus 7 Bricked
Started by rkoch
Last post by runolfsson.garry
27 minutes ago
Last post by mrunte
1 hour ago
[Q] Cloud app
Started by kellie75
Last post by bartholome.sporer
2 hours ago
Last post by shawn.bayer
4 hours ago
Last post by ygoodwin
17 minutes ago
Last post by karelle22
1 hour ago
Last post by lelia49
4 hours ago
Last post by tillman04
2 hours ago
Last post by kessler.genoveva
1 hour ago
Last post by friedrich44
4 hours ago
Last post by palma06
30 minutes ago
Last post by claudie32
1 hour ago