开发者

Error in Preferences

开发者 https://www.devze.com 2023-02-11 12:50 出处:网络
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 mean

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

精彩评论

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