Exam AND-401 All QuestionsBrowse all questions from this exam
Question 48

What does the following code do?

dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND,

LayoutParams.FLAG_BLUR_BEHIND);

    Correct Answer: A

    The code uses the setFlags method with LayoutParams.FLAG_BLUR_BEHIND, which indicates that when the dialog is displayed, the activity behind the dialog will be blurred. This is specified by the flag's purpose: to blur everything behind the window.

Discussion
MmadiOption: A

A. When dialog is displayed the activity behind it will be blurred.