Code example for Fragment

Methods: setRetainInstance