0

In my previous android application release i was using default shared preference.But now i'm using my own app specific preference to store data.I want to clear old preference from all installed application using play store app release update. Any suggestions

Key_coder
  • 534
  • 3
  • 27

1 Answers1

0

Try this:

SharedPreferences.Editor editor = getSharedPreferences("myPref", Context.MODE_PRIVATE).edit();//type the old preference file name
    editor.clear().commit();
Illegal Argument
  • 10,090
  • 2
  • 44
  • 61