存储数据
SharedPreferences sharedPre = getSharedPreferences("idpath", MODE_PRIVATE); SharedPreferences.Editor editor=sharedPre.edit(); editor.commit();
获取存储的数据
SharedPreferences sharedPre=getSharedPreferences("idpath", MODE_PRIVATE); String getID=sharedPre.getString("authid", "");