title: Why DialogFragment can't be an inner class?
body: <p>If I had my <code>DialogFragment</code> declared as an <strong>inner</strong> class I got an <code>InstantiationException</code> on <code>orientation change</code>, i.e. when instance is recreated, which says there is no public constructor, class isn't public etc. In fact everything is <code>public</code>, default constructor is in place. If I just move this <code>DialogFragment</code> to a separate file - everything goes fine. I'm not looking for a workaround, I just want to understand why this is happening.</p>