PrepAway - Latest Free Exam Questions & Answers

Which is the correct code to put into (1) so that it will automatically cancel the notification after it occur

The following code is a part of a program which sends a status bar notification. Which is the
correct code to put into (1) so that it will automatically cancel the notification after it occurs?

PrepAway - Latest Free Exam Questions & Answers

A.
notification.flags |= Notification.FLAG_INSISTENT;

B.
notification.flags |= Notification.FLAG_AUTO_CANCEL;

C.
notification.setFlags(Notification.FLAG_AUTO_CANCEL);

D.
notification.setFlags(Notification. FLAGJNSISTENT);

Explanation:

One Comment on “Which is the correct code to put into (1) so that it will automatically cancel the notification after it occur


Leave a Reply

Your email address will not be published. Required fields are marked *