Code example for SurfaceHolder

Methods: getSurface, setFormat

0
	} 
 
	@Override 
	public void setDisplay(SurfaceHolder holder) {
		if (holder != null) {
			holder.setFormat(PixelFormat.RGB_565);
			nativeAttachSurface(holder.getSurface());
		} else 
			nativeDetachSurface(); 
	} 
 
	@Override 
	public void setLooping(boolean looping) {
		/* not implemented yet */ 
		nativeSetLooping(looping);
	} 
 
	@Override 
	public void setOnBufferingUpdateListener( 
			AbsMediaPlayer.OnBufferingUpdateListener listener) {
		mOnBufferingUpdateListener = listener;