Dialog must not be dismiss when screen orientation change?

If you use android:configChanges="orientation then Android doesn't re-create the activity when the orientation is changed. If you don't want the dialog to be dismissed, just use the Activity.showDialog() method. And if you still want to use android:configChanges="orientation then you have to change drawables manually in the Activity.

OnConfigurationChanged() method.

If you use android:configChanges="orientation" then Android doesn't re-create the activity when the orientation is changed. If you don't want the dialog to be dismissed, just use the Activity.showDialog() method. And if you still want to use android:configChanges="orientation" then you have to change drawables manually in the Activity.

OnConfigurationChanged() method.

I don't want to set the layout manually in onConfigurationChanged because I think there would be a better alternative. If I use showDialog(), would it ensure that even though I change the orientation, it wouldn't dismiss? – exception May 6 at 8:39 When you use the Activity.showDialog() method, then the activity manages this dialog: dismisses it and re-creates.

– Pixie May 6 at 8:46 Indeed but my problem is the layout, it didn't use the landscape layout of tab. Could I combine using the android:configChanges="orientation", creating /res/layout-land/main. Xml and /drawable-land-hdpi?

– exception May 6 at 11:08 You don't need to change the layout file. Android will use /res/layout-land/main.xml. You have to change only resources which need to be displayed in other way.

You can read about it here: developer.android. Com/guide/topics/resources/…. – Pixie May 6 at 11:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions