开发者

android: displaying radio buttons when starting application

开发者 https://www.devze.com 2023-03-28 02:24 出处:网络
I have an application in android that shows a list of videos.. However, the list 开发者_开发知识库can be stored either in internal storage or in external storage. What I want is that when the applicat

I have an application in android that shows a list of videos.. However, the list 开发者_开发知识库can be stored either in internal storage or in external storage. What I want is that when the application starts, I want two radio buttons and a save button. The radio buttons should ask the user about whether they want to select internal storage or external storage.. And the save button should save the settings. Can anyone tell me how this can be achieved?

Thanks alot


I would highly suggest using SharedPreferences for anything along the lines of user-controlled settings or configurations you would like to save.


What I would do is have an opening activity (that could be made to look like a dialog if you so choose) that presents the option to the user and then passes that option to the next activity that actually runs the program.

0

精彩评论

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