title: In Android, how to get the profile of a connected bluetooth device?
body: <p>Following a lot of answers here, I am able to build the list of connected bluetooth devices with the help of a <code>BroadcastReceiver</code>. Now my question is how do I know which device supports which profile. I want to be able to pick the devices based on the profile, for example, get a list of currently connected devices and their profile, and pick one of them. I don't see how I can get such info if I have the instance of BluetoothDevice. </p>
  
  <p>On this page there are some codes illustrating how to work with a bluetooth headset profile: <a href="http://developer.android.com/guide/topics/connectivity/bluetooth.html#Profiles" rel="noreferrer">http://developer.android.com/guide/topics/connectivity/bluetooth.html#Profiles</a>. But it doesn't solve my problem. If you think I am missing anything, please help me and point it out. </p>
  
  <p>Thanks a lot in advance.</p>