Im currently playing around with the sqlite database with android, well trying to, and the main problem I'm having is by using
- Code: Select all
mDatabase = SQLiteDatabase.openDatabase("/data/data/com.overworld/databases/overworld.db", null, SQLiteDatabase.CREATE_IF_NECESSARY);
It gets and SQLite Exception
android.database.sqlite.SQLiteException: unable to open database file
Am I doing something drastically wrong? Because to me this make perfect sense and can't see why it wouldn't let me do this, do I need to use the SQLiteOpenHelper or set some sort of permission to write files?
Sorry that this is such a simple problem I'm very new to android and databases sooo I'm kinda in over my head lol