On Fri, Jul 30, 2010 at 9:14 PM, john brown <[email protected]>wrote:
> Does this mean that:
> 1) It is not possible for the AlertDialog to be made "modal" .
>
Yes - it's not possible.
> 2) My implementation of the AlertDialog is not modal. Solve problem
> with AlertDialog.IsModal = true; (or something like that)
>
No, AlertDialog is not meant to be modal, for reasons that have been
explained in this group before by Google Engineers.
> 3) or maybe:
> boolean buttonPushedFlag = false;
> AlertDialog.show();
> ..........
> do while buttonPushedFlag = false {
> }
>
Definitely no, unless you like blocking your UI thread and having to force
shut it down.
> How do I accomplish what I need, a yes/no confirmation?
>
Do what I told you in the the first response.
Please read the docs on AlertDialogs and work with some samples. Learn to
use an API the way it was meant to be used. Don't try to bend it to work the
way you would like it to work, or you'll cause yourself massive headaches.
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
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