posted on 2012-10-15
More optimistic in detection of headset connected state. Due to android limitation this feature may not behave 100% perfectly. There is not an API to query if a headset is connected; instead the app must listen to headset connection events. In some cases event may not line up with actual connected state, but this occurs usually only at first when setting up a Bluetooth device.