开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜