Created
July 19, 2014 15:00
-
-
Save takahirom/2e22fc7a6daed05f64ca to your computer and use it in GitHub Desktop.
初回起動時だけ○○する普通版
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); | |
if(defaultSharedPreferences.getBoolean(PREF_KEY,true)){ | |
defaultSharedPreferences.edit().putBoolean(PREF_KEY,false).apply(); | |
//初めての時の処理 | |
}else{ | |
//二回目以降の処理 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment