public static Map<String, String> getSavedUserInfo(Context context){
try{
File file = new File(context.getFileDir(),"info.txt");
BufferedReader br = new BufferedReader(new InputStreamReader(file));
String[] infos = br.split("##");
Map<String, String> map = new HashMap<String, String>();
map.put("username", infos[0]);
map.put("password", infos[1]);
return map;
}
catch (Exception e){
e.printStackTrace();
return null;
}
}