wait to trigger action
问题 I am looking to trigger a while loop, but only after the user selects an option. For some reason now, it is automatically blowing through the entire block of code even before the user picks an option. How can I force it to wait to continue until a user selects something? case R.id.buttonSetPlayers: //**********************// //***SET PLAYER COUNT***// //**********************// AlertDialog.Builder builderPC = new AlertDialog.Builder(this); final CharSequence[] playerCount = {"1", "2", "3", "4