I know that it is stores in /data/data/ + "packageName" + "/databases/" and I tried it in android 4.3 and it was correct.
but I see a code that say for android 4.2 the path is different. is it correct? or it is same for both.
if(android.os.Build.VERSION.SDK_INT >= 4.2){
DB_PATH = context.getApplicationInfo().dataDir + "/databases/";
} else {
DB_PATH = "/data/data/" + ""packageName"" + "/databases/";
}
I tried this for android 4.3 but not work:
DB_PATH = context.getApplicationInfo().dataDir + "/databases/";
Aucun commentaire:
Enregistrer un commentaire