Thanks ... yes, I had already read that.

I decided to manage the Dialog myself, using dismiss() and show() and
it works nicely now.

One thing I had not realised is that a dismiss() is needed in
OnDestroy() ... without that,
a show() in OnCreate() will not work. That was the root cause of my
trouble.



On May 6, 2:29 pm, TreKing <[email protected]> wrote:
> On Thu, May 6, 2010 at 3:53 PM, Julian Bunn <[email protected]> wrote:
> > How do I assign or retrieve the id of the Dialog created
> > by AlertDialog.Builder?
>
> The dialog itself does not have an ID - it's for th Activity to map to the
> correct dialog it manages.
> See this and come back with any 
> questions:http://developer.android.com/intl/fr/guide/topics/ui/dialogs.html#Sho...
> <http://developer.android.com/intl/fr/guide/topics/ui/dialogs.html#Sho...>
> -------------------------------------------------------------------------------------------------
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://sites.google.com/site/rezmobileapps/treking
>
> --
> 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 
> athttp://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