Code example for MediaPlayer.OnCompletionListener

Methods: onCompletion

0
 
				@Override 
				public void onCompletion(MediaPlayer mp) {
					// TODO Auto-generated method stub 
					if(ocl != null)
						ocl.onCompletion(mPlayer);
					if(mPlayer != null){
						mPlayer.stop();
						mPlayer.release();
					} 
					modePlay = STANDBY;
				} 
			}); 
	        mPlayer.setOnPreparedListener(new OnPreparedListener() {
				@Override 
				public void onPrepared(MediaPlayer mp) {
					if (onRecordStartPlayingListener != null)
						onRecordStartPlayingListener.onStart();
					mPlayer.start();
 
Stop searching for code, let great code find you!  Add Codota to your java IDE