且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何清除数据的编程机器人

更新时间:2023-11-19 11:25:28

要清除共享prefrences:

To clear the Shared Prefrences :

SharedPreferences settings = getActivity().getSharedPreferences("cda-preferences", Context.MODE_PRIVATE); 
        settings.edit().clear().commit();

和使用删除查询数据库:)

and use the delete query for the database :)