public static SharedPreferenceUtils initWith ( SharedPreferences sharedPreferences ) { if ( sharedPreferenceUtils == null ) { sharedPreferenceUtils = new SharedPreferenceUtils ( ) ; } sharedPreferenceUtils . sharedPreferences = sharedPreferences ; return sharedPreferenceUtils ; }
Init SharedPreferenceUtils with SharedPreferences file