Code example for Settings.SettingNotFoundException

Methods: printStackTrace

0
		try { 
			final float transition_animation = Settings.System.getFloat(getContentResolver(),
																		Settings.Global.TRANSITION_ANIMATION_SCALE);
			show_anim = transition_animation > 0.0;
		} catch (final SettingNotFoundException e) {
			e.printStackTrace();
		} 
		restartActivity(this, show_anim);
	} 
	 
	public void setTabConfiguration() { 
		final SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);
		boolean tab_display_label_default = getResources().getBoolean(R.bool.tab_display_label);
		mTabConfiguration = preferences.getBoolean(PREFERENCE_KEY_DISPLAY_TAB_LABEL, false);
	} 
	 
	public void setTabConfiguration2() { 
		final SharedPreferences preferences = getSharedPreferences(SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);
		boolean tab_display_label_default = getResources().getBoolean(R.bool.tab_display_label);
		mTabConfiguration2 = preferences.getBoolean(PREFERENCE_KEY_HIDE_TAB_LABEL, false);
	}