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?
Hi I have a question on AlertDialog / Toast . When a user clicks
Share
In case you are using a toast, postpone a task for the time the toast is being displayed using Handler.
When using a dialog, implement an onClickListener for the “Okey” button.