开发者

Saving result on Radio Button [closed]

开发者 https://www.devze.com 2023-03-31 03:45 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

I made a xml with two radio buttons and I want if the user chooses a radio button one or two the result was the saving and restoration on the next start up, can anyone 开发者_如何学JAVAhelp me?

Thanks a lot


I'd suggest storing this information into your SharedPreferences. Then on start-up, you look for what value is stored and set your radio buttons accordingly.

Take a look at this link for more information:

http://developer.android.com/guide/topics/data/data-storage.html#pref

0

精彩评论

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