Is it possible to get path of database file in android at path : "/data/system/accounts.db"
in my app i want to use this database, but not getting its path. if i do hardcoding and remove the file i'm able to do it. But i want to access it as database so that i can drop the table.
Any help would be appreciable.
code i tried:
private SQLiteDatabase db;
File dbFile = mContext.getDatabasePath("accounts.db");
if (dbFile.exists())
{
db = SQLiteDatabase.openOrCreateDatabase(dbFile, null);
db.execSQL("DROP TABLE IF EXISTS accounts");
db.setVersion(db.getVersion()+1);
}