Sharedpreference calling an Activity

Asked

Viewed 58 times

0

If I want to put a sharedpreference on a button, in case to select the desired city in a list view, how would it be? Because I only find sharedpreference with login etc.

  • Here has a complete tutorial on how to do this.

  • You would like to have a list to popular a Listview right? and This List will be fixed, the User will not be able to change the name of the right city? Just select! If the above questions are positive, then I recommend using a <string-array>. In case it’s true, post here that I pass the code to load! Hugs!

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.