Automatically close of Dialog box without any click in Android app -
Can we create a warning dialog box that will appear after performing some activity and after no close of the click Will automatically turn off or click outside the warning dialog box)? For example, if we can add some delays in the dialog box to close after certain specified seconds
The better way to turn off the warning automatically is to use the handler to delay the dialog box dialog box.
Example: > Specifies the number of milliseconds delay in the 2000 alert dialog box. New Handler (). PostDelayed {New Runnabal} {Public runs zero () {Dialog.dismiss ();}}, 2000);
Comments
Post a Comment