title: missing permissions required by BluetoothAdapter.isEnabled.BLUETOOTH
body: <p>I add bluetooth to my app but am running into the following problem. When I do the code:</p>
  
  <pre><code>BluetoothAdapter bluetoothAdapter=BluetoothAdapter.getDefaultAdapter();
  if (bluetoothAdapter == null) {
      Toast.makeText(getApplicationContext(),"Device doesnt Support Bluetooth",Toast.LENGTH_SHORT).show();
  }
  
  if(!bluetoothAdapter.isEnabled()) {
      Intent enableAdapter = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
      startActivityForResult(enableAdapter, 0);
  }
  </code></pre>
  
  <p>The error is on the following line:</p>
  
  <pre><code>if(!bluetoothAdapter.isEnabled())
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Missing permissions required by BluetoothAdapter.isEnabled :android.permissions.BLUETOOTH</p>
  </blockquote>
  
  <p>I added the following permissions to the android manifest file:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt;
  &lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt;
  &lt;permission android:name="android.permission.BLUETOOTH" android:label="BLUETOOTH" /&gt;
  &lt;permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt;
  </code></pre>
  
  <p>but am still getting the same issue. Do you know what I did wrong?</p>