You may want to clarify what you're asking, but if you mean you need to
dynamically populate the contents of the dialog or set a different click
listener based on what the user did to bring up the dialog, then you may
want to simply call Activity.removeDialog(DIALOG_ID) after you're done with
it.

Subsequent calls to Activity.showDialog(DIALOG_ID) will then call
onCreateDialog(int) again and let you recreate it as necessary based on what
action the user took.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking


On Thu, Nov 19, 2009 at 1:50 PM, Miguel Paraz <[email protected]> wrote:

> Hi,
> I have Dialog code whose actions in onClick() change, depending on a
> selected item on a ListView.
> I believe that Dialogs are better when managed, right?
> But, showDialog() and onPrepareDialog() don't give me a chance to
> change the dialog state.
> Does this mean, managed dialogs are meant for non-changing dialogs
> only?
>
> Thanks.
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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

Reply via email to