nerdexam
Android

AND-401 · Question #29

Which of following is incorrect about the Toast class?

The correct answer is B. A Toast can only created by an Activity class. See the full explanation below for the reasoning.

Question

Which of following is incorrect about the Toast class?

Options

  • AYou cannot set a custom layout for a Toast.
  • BA Toast can only created by an Activity class
  • CThere is no need to close or hide a Toast, since it closes automatically.
  • DA Toast is displayed for only one of the following periods: Toast.LENGHT_SHORT or

How the community answered

(68 responses)
  • A
    15% (10)
  • B
    74% (50)
  • C
    7% (5)
  • D
    4% (3)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice