Hi all,

My custom dialogs won't "restore" upon orientation|keyboard change,
for example, if my dialog is visible and the device is changed from
Portrait to Landscape when the activity is restarted the dialog is not
shown. This ONLY happens with my custom dialogs, all the Android API
dialogs perform as expected (DatePicker, TimePicker, etc.).

Now, I am pretty sure I need to manage the dialog state, but I just
can't figure out how.

I have override onCreateDialog like below, and display each dialog
with a call to showDialog(int)

protected Dialog onCreateDialog(int id) {
        switch (id) {
           case TEST:
                return new TestDialog(my params);
                break;
        }
        return null;
}

As always, any help is always appreciated.

Kevin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to