nerdexam
Android

OA0-002 · Question #25

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?

Sign in or unlock OA0-002 to reveal the answer and full explanation for question #25. The question stem and answer options stay visible for context.

Question

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?

Options

  • Anotification.flags |= Notification.FLAG_INSISTENT;
  • Bnotification.flags |= Notification.FLAG_AUTO_CANCEL;
  • Cnotification.setFlags(Notification.FLAG_AUTO_CANCEL);
  • Dnotification.setFlags(Notification. FLAGJNSISTENT);

Unlock OA0-002 to see the answer

You've previewed enough free OA0-002 questions. Unlock OA0-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full OA0-002 Practice