title: Cannot resolve symbol getReadableDatabase();
body: <p>I was writing probably the most simple program to create a Cursor so i could demonstrate a query.I'm stuck with the error "cannot resolve symbol getReadableDatabase()"</p>
  
  <p>PS: I've aldready tries invalidating caches and restarting.</p>
  
  <pre><code>    package com.example.arjunrao.databasedemo;
  
  import android.app.Activity;
  import android.app.AlertDialog;
  import android.content.DialogInterface;
  import android.database.sqlite.SQLiteDatabase;
  import android.database.sqlite.SQLiteException;
  import android.database.sqlite.SQLiteOpenHelper;
  import android.os.Bundle;
  import android.view.View;
  import android.database.Cursor;
  import android.widget.EditText;
  
  public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
      }
  
      public void onclick(View view){
          EditText editText = (EditText) findViewById(R.id.editText);
           String drink_name = (String)editText.getText().toString();
  
          try{
              SQLiteOpenHelper database = new Database_class(this);
              SQLiteDatabase db = new database.getReadableDatabase();
              db.query("DRINK",new String[] {"NAME","DESCRIPTION","FAVORITE"});
          }catch(SQLiteException ex){
             final AlertDialog.Builder alertDialog = new AlertDialog.Builder(MainActivity.this);
              alertDialog.setTitle("SQLITE EXCEPTION GENERATED");
              alertDialog.setPositiveButton("OK", new DialogInterface.OnClickListener() {
                  @Override
                  public void onClick(DialogInterface dialogInterface, int i) {
                      dialogInterface.dismiss();
                  }
              });
  
  
          }
  
      }
  }
  </code></pre>