I’m making a function in my android app that, at a home screen the user has the choice to view a league or choose a team. I want to know if its possible to and how to store their team selection so that it doesn’t go to that activity the next time they start the app.
Also, how would I implement a menu button to change that team if they so wish?
I’m making a function in my android app that, at a home screen the
Share
SharedPreferences will allow you to store your league/team selection. You can retrieve this when you start your application and move to your next activity if it is set.
Look how to create Menu items in Android here. These are straight forward and very easy to implement. Just have that menu button launch your “select a team/league” activity