I've been searching all over the internet about shared preferences for android. I'm working on an application where I need to store a lot of data. I have three important questions, please try to answer them with clear explanation (short and informative is best):
- How can I set initial values(default values), if you put the editor in Splash screen then you will reset the values every time the user launches the application.
- Using getSomething() always get you the value you put in it, like if I say getBoolean(first_start,true) it will return true, what if I wanted to get the value stored in the file, how do I do that??
- can I create sharedpreferences file (txt) and put default values in keyvaluepair format and put it inside the apk, so that when the user installs the app gets default values??
Thank you in advance for wasting my time on me :P