October 2018
Intermediate to advanced
464 pages
15h 17m
English
The code here is pretty straightforward. We create MediaPlayer with our sound and start playing the sound. The buttons will replay, pause, and stop accordingly.
Even this basic example illustrates one very important concept regarding MediaPlayer, and that is the state. If you're making serious use of MediaPlayer, review the link provided later for detailed information.