it fixes the issue When the orientation changes the Activity is destroyed and recreated. The method you would override if using configChanges is onConfigurationChanged. For the keyboard question, sounds like you just need to keep a track of it's state and restore it via the Bundle passed in Activity.onCreate.
After screen orientation change the dialogFragment appears apparently without any call
wish of those help I'm implementing a dialog with two EditText fields. According to the Material Design specs, this kind of dialog should be shown fullscreen on smaller devices whereas on large screens it should be shown in a dialog window. , I finally found the source of the problem: