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.
精彩评论