title: Cannot resolve symbol 'REQUEST_ENABLE_BLUETOOTH'
body: <p>I am trying to implement a feature which checks if Bluetooth is enabled or not. I keep getting: Cannot resolve symbol 'REQUEST_ENABLE_BLUETOOTH'. I am a beginner in Java and just started working in Android Studio for an Internship project.</p>
  
  <pre><code>package achal.xylotron.com.bluespot;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.bluetooth.*;
  import android.content.Intent;
  
  public class BlueChat extends Activity
  {
  
      BluetoothAdapter bluetoothAdapter;
  
      @Override
      protected void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.blue_chat);
  
          bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
  
          if (!bluetoothAdapter.isEnabled())
          {
              Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
              startActivityForResult(enableIntent, REQUEST_ENABLE_BLUETOOTH);
          }
      }
  }
  </code></pre>