openOrCreateDatabase error
<pre><code>public class DBActivities {
    private final String tableName = "Table_SMS";
    private final String CREATE_TABLE_SMS = "CREATE TABLE " + tableName + "(" + "db_date TEXT " + "db_sms_count INTEGER);";
    private SQLiteDatabase db;

    public DBActivities() {
        DoDBInitialization();
    }

    private void DoDBInitialization() {
        db = openOrCreateDatabase(tableName, 0, null);
        db.setVersion(1);
        db.setLocale(Locale.getDefault());
        db.setLockingEnabled(true);
    }
</code></pre>

<p>I'm getting the error "The method openOrCreateDatabase(String, int, null) is undefined for the type DBActivities". What can be the problem here? DBActivities class is being used by the main class for all database related activites.</p>

<p>I did some research and I tried using:</p>

<pre><code>db = openOrCreateDatabase(tableName, null, Context.MODE_PRIVATE);
</code></pre>

<p>Still the result is the same.</p>
