Edit: I tried this on my phone and it works, can anyone tell me why it does not work on an emulator?
I am trying to open a database on android, but it is throwing an
try this on your constructor
public youeConstructor(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); context.openOrCreateDatabase(DATABASE_NAME, context.MODE_PRIVATE, null); }