SharedPreferences sharedPreferences=PreferenceManager.getDefaultSharedPreferences(this); sharedPreferences.edit().putInt("isOpened", 0).commit();