Skip to content Skip to sidebar Skip to footer

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

Solution 1:

Put the while loop in onClick or a method called by onClick. builderPC.create().show(); does not block or do anything to wait for the response but onclick is trigged by the user response. Just remember this will run on the main thread.


Post a Comment for "Wait To Trigger Action"