title: Android database openOrCreate() error
body: <p>I have two classes, both are not activity, one is to perform database operation and one is to forward the values as mediator class. DataBase class calling openOrCreateDataBase method from a 3rd Connectivity class. </p>
  
  <pre><code>    contextWrapper.openOrCreateDatabase(sqlDBName, MODE_PRIVATE, null);
  </code></pre>
  
  <p>but here since this class is not activity, i am unable to pass parameter of ContextWrapper. Is there any other way to open database. I have tried,</p>
  
  <pre><code>    sqLiteDatabase = SQLiteDatabase.openDatabase(path, factory, flags);
      sqLiteDatabase = SQLiteDatabase.openOrCreateDatabase(file, factory);
  </code></pre>
  
  <p>But these not working for me.</p>
  
  <p>thanks</p>