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.
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.
0
I don’t know if I understand the question, but Sharedpreferences is used as a form of file persistence, usually used to save user data, but can record any information using it to file.
For more information on the class and related methods, please visit: http://developer.android.com/reference/android/content/SharedPreferences.html
Browser other questions tagged android sharedpreferences
You are not signed in. Login or sign up in order to post.
Here has a complete tutorial on how to do this.
– Wellington Avelino
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!
– Thiago Luiz Domacoski