@Override
  void onPause() {
    if (impl != null) {
      // note our current play position
      if (impl.isPlaying()) {
        position = impl.getCurrentPosition();
      }
      // release our media player and reset ourselves to the unloaded state
      impl.release();
      impl = null;
    }
  }
@ Override void onPause ( ) { if ( impl != null ) { if ( impl . isPlaying ( ) ) { position = impl . getCurrentPosition ( ) ; } impl . release ( ) ; impl = null ; } }
The following methods are called by AndroidAudio during the Activity lifecycle