¡@

Home 

2014/10/16 ¤W¤È 08:20:25

android Programming Glossary: nextstep

Dialogs / AlertDialogs: How to “block execution” while dialog is up (.NET-style)

http://stackoverflow.com/questions/2028697/dialogs-alertdialogs-how-to-block-execution-while-dialog-is-up-net-style

work. The reason is that I cannot continue the normal execution . Let me take an example Let me take an example int nextStep 0 this variable will not be reached from within the onClick methods AlertDialog.Builder builder new AlertDialog.Builder.. Hello .setPositiveButton Ok new DialogInterface.OnClickListener public void onClick DialogInterface dialog int id nextStep 1 COMPILER ERROR .setNegativeButton Cancel new DialogInterface.OnClickListener public void onClick DialogInterface dialog.. .setNegativeButton Cancel new DialogInterface.OnClickListener public void onClick DialogInterface dialog int id nextStep 2 COMPILER ERROR .create .show if nextStep 1 then do some damage else if nextStep 2 dont do damage If I wanted the execution..