title: Bluetooth intent permission denied
body: <p>I am trying to pass the intent mentioned below but i am getting the following exception below . Anyone have any idea about this????</p>
  
  <pre><code>Intent intent = new Intent(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED);
  intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
  intent.putExtra(BluetoothProfile.EXTRA_STATE,BluetoothAdapter.STATE_CONNECTED);
  intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mdevice);
  sendBroadcast(intent);
  </code></pre>
  
  <p><strong>java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.bluetooth.headset.profile.action.CONNECTION_STATE_CHANGED from pid=10459, uid=10126</strong></p>