80,472
社区成员




protected String getProfile() {
Context c;
try {
c = createPackageContext("com.test.demo",Context.CONTEXT_IGNORE_SECURITY);
SharedPreferences share = c.getSharedPreferences("main",MODE_WORLD_WRITEABLE | Context.MODE_MULTI_PROCESS);
String s = share.getString("string1", "notfind");
return s;
} catch (NameNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
return "error";
}