📜  android java shared preferences remove key - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:33.598000             🧑  作者: Mango

代码示例1
SharedPreferences mySPrefs = PreferenceManager.getDefaultSharedPreferences(this);
SharedPreferences.Editor editor = mySPrefs.edit();
editor.remove(key);
editor.commit();