nerdexam
Android

OA0-002 · Question #142

Which of these is the incorrect method setup when playing a video using a MediaPlayer?

The correct answer is B. setDisplay sets the SurfaceView object you want to associate. See the full explanation below for the reasoning.

Question

Which of these is the incorrect method setup when playing a video using a MediaPlayer?

Options

  • AsetDataSource sets the path for the data you want to play.
  • BsetDisplay sets the SurfaceView object you want to associate.
  • CsetAudioStreamType sets the type, chosen from those defined in AudioManager.
  • DsetLooping sets the player repeat to ON/OFF.

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    81% (30)
  • C
    11% (4)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full OA0-002 Practice