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

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -