How to get Bluetooth Headset connection state on application start-up using Android2.2?
问题 How to get Bluetooth Headset connection state (connected/disconnected) using android api level 8 on application start-up? Is there any sticky broadcast intent available in android2.2? Is there any API to fetch initial Bluetooth Headset state? Is there any workaround available? 回答1: I figured out the solution: private static final String ACTION_BT_HEADSET_STATE_CHANGED = "android.bluetooth.headset.action.STATE_CHANGED"; private static final int STATE_CONNECTED = 0x00000002; private static