I have a question regarding DialogFragment. I am trying to make a dialog that keeps it\'s state after the device is rotated. This dialog has a bunch of references to things
The dialog fragment should be preserved automatically as long as you do the following:
setRetainInstance
, you need to manually store off the values. Otherwise, you should be able to not worry about it, in most cases. If you're doing something a bit more complicated, you might need to setRetainInstance(true)
, but otherwise ignore it.