I'm trying to use a managed dialog from inside a tab in a TabActivity and it
is not behaving as I expected. The dialog is still being killed when I flip
the screen. If I create the dialog from the TabActivity instead of its child
(using getParent().showDialog() ) it is handled correctly.
Is there
Hi Dianne,
I suggested the way i followed to retain the state of the dialog, which may
not be preferred. Thanks for the suggestion.
It would be good if you could provide a sample as to how to retain the state
after flipping, so that i could implement the same.
--~--~-~--~~~
Don't do that. Do the proper thing of saving your state and restoring it,
or use the managed dialogs API to get help from the system for that. Doing
this just means your app will continue to not work in other situations where
the system kills it, such as when it needs memory for something else th
Thanks a lot
It worked !!
--~--~-~--~~~---~--~~
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 emai
Flipping the device would recreate the activity. So the dialog is getting
dismissed.
Override the method onConfigurationChanged(). and for the activity,
set the configChanges
parameter to "keyboardHidden|Orientation" in the manifest file. doing this,
will not recreate the activity.
--~--~
is it a bug or desired behavior ?
--~--~-~--~~~---~--~~
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, sen
6 matches
Mail list logo