On Tue, Feb 2, 2010 at 11:07 AM, just me <[email protected]> wrote: > I have created an alert dialog with 2 buttons "OK" and "Cancel" and > would like to use the results of the buttons to continue my app in > either one direction or the other. > > Right now, when I show the dialog, the code continues to run, not > waiting on a button to be pushed > here is a sample of what I mean: >
Don't do that setting of global variables, instead put what you need to do in the click listeners you already have set up. ------------------------------------------------------------------------------------------------- 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 Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

