android - Sqlite Database Still Exists Even I Clear Data and Delete the App from 6.0.1 Device -


my db implementation this

public class dbhelper extends sqliteopenhelper {      private static dbhelper mdbhelper;     private context context;      public static synchronized dbhelper getinstance(context context) {         if (mdbhelper == null) {             checkdatabase(context);             mdbhelper = new dbhelper(context.getapplicationcontext());             log.d(log, context.getdatabasepath(db_name).getpath());         }          return mdbhelper;     }      public dbhelper(context context) {         super(context, db_name, null, version);         this.context = context;     } } 

i put initial data on oncreate method excel file. when install app android studio after cleared data , deleted app, behaves there database , never calls oncreate method. brings old data old excel file. db must deleted when clear data.

i log path in logcat , says: /data/user/0/com.mypackage.app/databases/dbname

i think there cache holding database alive somewhere in device. occurs on 6.0.1 device. works fine on 5.1.1

any advices delete database?

i had same problem too, , bothered me entire day.

uninstall app restart phone. solves problem on marshmellow.


Comments