I'm trying to open database as follows : SQLiteDatabase myDatabase; myDatabase = openOrCreateDatabase("sudoku.db", Context.MODE_PRIVATE, null);
This code works fine when I implement it in the Service class, but when I try to implement this in the onPostExecute eventhandler of the GeneraterThread class,implementing AsyncTask, I get the following error :
'The method openOrCreateDatabase(String, int, null) is undefined for the type GeneraterThread'
Kindly explain..I'm a novice in Android