user1474752
user1474752

Reputation:

How do I programmatically close an alert dailog on event occurrance

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

Answers (1)

user2668226
user2668226

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

Related Questions