Code example for FragmentActivity

Methods: onSaveInstanceState

0
		toast1.show();
	} 
 
	@Override 
	protected void onSaveInstanceState(Bundle outState){
		super.onSaveInstanceState(outState);
		if(imageUri != null){
			outState.putString("cameraImageUri", imageUri.toString());
		} 
	} 
 
	@Override 
	protected void onRestoreInstanceState(Bundle savedState){
		super.onRestoreInstanceState(savedState);
		if(savedState.containsKey("cameraImageUri")){
			imageUri = Uri.parse(savedState.getString("cameraImageUri"));
		} 
	} 
 
	@Override