Code example for Fragment

Methods: onSaveInstanceState

0
	} 
 
 
	@Override 
	public void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
 
		outState.putBoolean(ONSCREEN_CALCULATOR_ENABLED, onscreenCalculatorEnabled);
	} 
 
	@Nullable 
	CheckBox getOnscreenCalculatorCheckbox() {
		return onscreenCalculatorCheckbox;
	} 
} 
 
Connect your IDE to all the code out there  Get Codota for Java