Hi I have a question on AlertDialog / Toast . 
When a user clicks on a button , just a message showing "You are right " should be displayed for 1 seconds. When I implement this using toast/alertdialog it executes this but starts the next instruction in the onclick method before the dailog is turned off. How do I fix this?