title: The method openOrCreateDatabase(String, int, null) is undefined for the type DataBase
body: <p>I'm having trouble creating a class that create and manipulate the database! But the method <code>create ()</code> has a problem saying</p>
  
  <blockquote>
    <p>"The method openOrCreateDatabase(String, int, null) is undefined for
    the type BancoDeDados".</p>
  </blockquote>
  
  <p>Anyone have any suggestions to overcome this problem? My code is as follows:</p>
  
  <p>package com.example;</p>
  
  <pre><code>import android.content.Context;
  import android.database.sqlite.SQLiteDatabase;
  
  public class DataBase{
       private SQLiteDatabase db;
       private String DATABASE_NAME;
       private String TABLE_NAME;
       private String SQL_SELECT_ALL;
       private String SQL_SELECT_ID;
       private String SQL_CREATE;
  
       public DataBase(SQLiteDatabase db,String DATABASE_NAME,String TABLE_NAME,String SQL_SELECT_ALL,String SQL_SELECT_ID,String SQL_CREATE){
           this.db = db;
           this.DATABASE_NAME = DATABASE_NAME;
           this.TABLE_NAME = TABLE_NAME;
           this.SQL_SELECT_ALL = SQL_SELECT_ALL;
           this.SQL_SELECT_ID = SQL_SELECT_ID;
           this.SQL_CREATE = SQL_CREATE;
       }
  
       public void create(){
           this.db = openOrCreateDatabase(this.DATABASE_NAME,Context.MODE_PRIVATE,null);
           this.db.execSQL(this.SQL_CREATE);
           this.db.close(); 
       }
  }
  </code></pre>