Reputation:
How do I programmatically close an alert dailog if specific event has occurred...for example...alert dailog must close itself when a new message is received... Please help
Upvotes: 0
Views: 54
Reputation:
All Dialogs will implement dismiss()
and cancel()
via the DialogInterface
.
I would strongly suggest reading the Official Android Developers guide on Dialogs for more information and best practices.
Upvotes: 2