Android-How can I know if it is the first time the application launched? [duplicate]
问题 This question already has answers here : Determine if android app is the first time used (15 answers) Closed 3 years ago . How can I know if it is the first time the application launched? If you are answering please add a full code because I have read some answers and I didn't understand them. Thanks. 回答1: Use sharedPreferences for the persistent data storage.when the application first launched just save a boolean value in the shared Preferences.Then check each time. SharedPreferences