Use SharedPreferences for test