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: New Handler (). PostDelayed {New Runnabal} {Public runs zero () {Dialog.dismiss ();}}, 2000);

Specifies the number of milliseconds delay in the 2000 alert dialog box.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -