bluetooth - How to determine BT headset type (SCO or A2DP) in Android SDK? -
i have broadcast receiver in app logs every connection of bt device tracking android.bluetooth.device.action.acl_connected
broadcast. need know if bt device isa headset, , more importantly, if it's sco or a2dp headset. can find out services connected device supports using bluetoothclass.service, don't know services supposed correspong each type of headset. here ones listed:
audio capture information limited_discoverability networking object_transfer positioning render telephony
can tell me of these determiny headset profile type (headset, hands-free, or a2dp?
you can use bluetoothprofile.servicelistener , listen onserviceconnetced , notifications a2dp or sco connected. see here
Comments
Post a Comment