Answer the question
In order to leave comments, you need to log in
SharedPreferences and default values if there are no saved values, is this possible?
There are three activities
1) MainActivity - the main window in which all actions take place
2) Data received from the Internet and current settings are displayed here
3) All settings are set here that are stored in SharedPreferences The
question is, is it possible to take data that are specified by default immediately after installing apk if there are no saved in Preferences, if it is possible then how to specify these default values?
Answer the question
In order to leave comments, you need to log in
Have you tried SharedPreferences at all? Any get method has defaultValue as the second argument, it's hard not to notice.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question