Code example for DialogFragment

Methods: onCreate, setRetainInstance