Error in Preferences
How to fetch data from android in EditText preferences & save it to another variable开发者_StackOverflow社区?
Check the Using Shared Preferences section here. I think that is what you actually meant.
SharedPreferences sharedPref = getSharedPreferences("AnyFileName", MODE_PRIVATE);
String data = sharedPref.getString("myData","no data found");
I think this should help you
精彩评论