Here's a real challenge for you

  1. Make the Pause button show “Pause” when the sound is playing and “Resume” when paused. Make it disabled if the audio is not playing or paused.

  2. Make the playback state (stopped, paused, playing) and state of the Pause button survive device rotation.

The MediaPlayer does not have a method to determine if it is PAUSED. The “isPlaying()” method only determines if it is currently playing. So, you need to keep track of this with your own boolean in AudioPlayer. You would want to put the “Resume” string in the strings.xml file. and use the appropriate functions to set the button text.

[color=#FF0000][size=150]NEVER MIND! Chapter 14 covers a different and better way to do this![/size][/color]