java - Clearing application data programatically android -
I have an app with SharedPreferences. I clicked on a button to clear the complete apps data so that the application started as a fresh reason when it was first installed.
I have tried: -
< P> ClearData.javaMain.Java
  btnLogout.setOnclickListener (see the new OnClickListner ({@Override Public Zero (click V) {ClearData. GetInstance). Please do not include the unchanged data (); // gatin error}}   but I get a NullPointerException on the top line
  Clear application data (context macintex)   enter post "itemprop =" text ">
< code> instead of
and
  file cache = mContext.getCacheDir ();  instead of   instead of
  file cache = getCacheDir () ;.   The main activity in itself phone
  clear Aplikeshndeta (getBaseContext ());   Click the button btnLogout. Hope it helps.
Comments
Post a Comment