Yes, that method only appeared in 2.2, and not available before then.
Without it, you're either going to need to create your own solution for
managing dialogs and their states (and handle activity being recreated
when configuration changes), or just accept that a dialog will not
survive an orientation change (to me, that's reasonable for simple
yes/no/info dialogs).
If your dialogs are a major part of the UI, and you absolutely need them
to persist, then you can use dialog-themed activities instead of dialogs
- those are saved/restored/recreated and get their own intent with
extras, just like any activity.
-- Kostya
10.02.2011 10:24, Dimitris пишет:
I cant seem to find an "Edit post" button.
I basically want to ensure my dialog is automatically managed but also
be able to pass along information either onPrepareDialog or
onCreateDialog.
I've seen on Android 2.2 you can pass a Bundle but I am building my
app based on 2.1 and this method is not available
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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