title: BluetoothProfile of Paired android device
body: <p>is there any way to get the Profile of a paired blutooth device.
  i have been able to pair a bluetooth device and it has been paired as INPUT_DEVICE
  in android, i get the Object of BluetoothDevice for that , which contains the address and other things, but if the android has stored it's profile then from where we can get the paired device profile , like is it HEADSET or A2DP or INPUT_DEVICE or other.</p>
  
  <p>i have already tried the method of service listener</p>
  
  <pre><code>private BluetoothProfile.ServiceListener listener=new BluetoothProfile.ServiceListener() {
  
          @Override
          public void onServiceDisconnected(int profile) {
              // TODO Auto-generated method stub
              //if(profile==BluetoothProfile.HEADSET)
                  headSet=null;
          }
  
          @Override
          public void onServiceConnected(int profile, BluetoothProfile proxy) {
              // TODO Auto-generated method stub
              switch(profile){
              case BluetoothProfile.HEADSET:
                  Log.e("found","headset");
                  break;
              case BluetoothProfile.A2DP:
                  Log.e("found","a2dp");
                  activity.onA2DPListenr((BluetoothA2dp) proxy);
                  break;
              case BluetoothProfile.HEALTH:
                  Log.e("found","HEALTH");
                  break;
              }
  
  
              }
          }
      };
  </code></pre>
  
  <p>now whenever i call it via</p>
  
  <pre><code>activity.getAdapter().getProfileProxy(activity, listener,
                  BluetoothProfile.HEADSET);
  </code></pre>
  
  <p>it'll go to headset log, and when i call with</p>
  
  <pre><code>activity.getAdapter().getProfileProxy(activity, listener,
                  BluetoothProfile.HEALTH);
  </code></pre>
  
  <p>it'll go to health log, and shows that the profile has been connected for same device.but the same device can bot be both.</p>
  
  <p>also my requirment totally different from this, i don't want to try different scenarios to find out the actual profile of my paired device which android already contains, is their any way to get the actual profile..?</p>