nerdexam
Android

AND-401 · Question #107

What does the following code do? dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND, LayoutParams.FLAG_BLUR_BEHIND);

The correct answer is A. When dialog is displayed the activity behind it will be blurred. See the full explanation below for the reasoning.

Question

What does the following code do? dialog.getWindow().setFlags(LayoutParams.FLAG_BLUR_BEHIND, LayoutParams.FLAG_BLUR_BEHIND);

Options

  • AWhen dialog is displayed the activity behind it will be blurred.
  • BWhen dialog is displayed the activity behind it will be dimmed.
  • CAny EditText behind the dialog will be disabled.
  • DWhen the dialog is displayed, the edges of the dialog will be blurred.

How the community answered

(29 responses)
  • A
    79% (23)
  • B
    7% (2)
  • C
    3% (1)
  • D
    10% (3)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice