how to reset all stored data store using shared preferences

前端 未结 4 1837
孤独总比滥情好
孤独总比滥情好 2021-01-01 15:29

I have created an activity where i have used shared preferences for storing data..now in another activity i have an reset button..when i click on the reset button the data s

4条回答
  •  迷失自我
    2021-01-01 15:54

    its very easy..

    yourEditor.remove(" thing you want to remove on start");
    

    and then give must

    yourEditor.commit();
    

提交回复
热议问题