5,593,401 Members 36,262 Now Online
XDA Developers Android and Mobile Development Forum

Best way to store this settings data

Tip us?
 
krikor1
Old
#1  
Member - OP
Thanks Meter 0
Posts: 44
Join Date: Aug 2013
Default Best way to store this settings data

I have a spinner, drop down menu.

and a checkbox...

if checkbox is checked, i want to store the selected index in the menu somewhere... so that next time the app is reentered, its the default selection


whats best way to do it?

I want on application update this stored value not to be lost, i want an application delete this stored value deleted...and i dont want another app or user to access tis stored value outside the app

is sqlite database the way to go? or another way available?


thank you
 
Creepyficate
Old
#2  
Junior Member
Thanks Meter 1
Posts: 8
Join Date: Nov 2013
developer.android.com/reference/android/content/SharedPreferences.html

I think this is the best solution...
The Following User Says Thank You to Creepyficate For This Useful Post: [ Click to Expand ]
 
CrotaNexus
Old
#3  
CrotaNexus's Avatar
Senior Member
Thanks Meter 198
Posts: 177
Join Date: May 2013
Location: Rome
Quote:
Originally Posted by Creepyficate View Post
developer.android.com/reference/android/content/SharedPreferences.html

I think this is the best solution...
Quote! In this case the SharedPreferences are the best solution.

Inviato dal mio Galaxy Nexus con Tapatalk 2
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes