Code example for MediaPlayer.OnErrorListener

Methods: onError

0
			if (mMediaController != null) { 
				mMediaController.hide(); 
			} 
 
			if (mOnErrorListener != null) { 
				if (mOnErrorListener.onError(mMediaPlayer, framework_err, 
						impl_err)) { 
					return true; 
				} 
			} 
 
			if (getWindowToken() != null) { 
				/* 
				 * Resources r = mContext.getResources(); int messageId; if 
				 * (framework_err == 
				 * MediaPlayer.MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK) { 
				 * messageId = 
				 * R.string.VideoView_error_text_invalid_progressive_playback; } 
				 * else { messageId = R.string.VideoView_error_text_unknown; } 
				 *  
				 * new AlertDialog.Builder(mContext).setTitle(