背景SharedPreferences我觉得是最容易上手的,以xml方式存储。代码publicclassshare{publicstaticvoidsaveInfo(Contextcontext,Stringusername,Stringpassword){SharedPreferencessp=context.getSharedPreferences("config",context.MODE_PRIVATE);Editoreditor=sp.edit();editor.putString...
查看全文