title: Error checking if Bluetooth is enabled in Android (REQUEST_ENABLE_BT cannot be resolved to a variable)
body: <p>I'm trying to do this:</p>
  
  <pre><code>    BluetoothAdapter bt = BluetoothAdapter.getDefaultAdapter();
      if (bt == null){
          //Does not support Bluetooth
          status.setText("Your device does not support Bluetooth");
      }else{
          //Magic starts. Let's check if it's enabled
          if (!bt.isEnabled()){
              Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
              startActivityForResult(enableIntent, REQUEST_ENABLE_BT);
          }   
      }
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>REQUEST_ENABLE_BT cannot be resolved to a variable</p>
  </blockquote>
  
  <p>How can I fix it?</p>