Code example for Fragment

Methods: onSaveInstanceState

2
		return v;
	} 
	 
	@Override 
	public void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		outState.putInt("mColorRes", mColorRes);
	} 
	 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE