Implemented SharedPreferences.