On Mon, Mar 8, 2010 at 7:11 AM, LeGeNDuS <[email protected]> wrote:

> I'm being looking the docs and I don't see
> how to know the IdDialog I need to do the showDialog of the activity.
>

The dialog ID you use is defined by you and can be any integer that uniquely
identifies the dialog you want to show.


> I have seen I must use onCreateDialog and in the internal switch put
> the code to build it....but I need to pass more parameters to generate
> the dialog and it only supports one....should I use global
> variables?...
>

Well, Java doesn't really support globals in the true sense, but in any
case, no, I would steer away from anything of that sort. Use local or
class-level variables wherever you can. And don't forget you have
onPrepareDialog to configure the dialog however you need before it's shown.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://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 at
http://groups.google.com/group/android-developers?hl=en

Reply via email to