Can we create an Alert Dialog box which will appear after doing some activity and automatically get closed without any click (whether any button click or click outside the alert dialog box)?
Like, if we can add some delay to the dialog box to close after some specified seconds.
Any help would be appreciated.
Thanks
Better way to automatically close the alert dialog box would be to use Handler to delay the Dialog box.
Example:
Here 2000 specifies number of milliseconds of delaying the Alert dialog box.