code: private void initPlayer(Context ctx) {
  
  		mMediaPlayer = new MediaPlayer();
  		mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
  
  		try {
  			mMediaPlayer.setDataSource(ctx, mUri);
  		} catch (IllegalArgumentException e) {
  			e.printStackTrace();
  		} catch (SecurityException e) {
  			e.printStackTrace();
  		} catch (IllegalStateException e) {
  			e.printStackTrace();
  		} catch (IOException e) {
  			e.printStackTrace();
  		} catch (Exception e) {
  			e.printStackTrace();
  		}
  
  		try {
  			mMediaPlayer.prepare();
  		} catch (IllegalStateException e) {
  			e.printStackTrace();
  		} catch (IOException e) {
  			e.printStackTrace();
  		} catch (Exception e) {
  			e.printStackTrace();
  		}
  
  		mMediaPlayer.setOnCompletionListener(mOnCompletion);
  	}
docs: **
  Initialize and prepare the audio player
  **