Code example for MediaPlayer

Methods: release

0
	} 
 
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		mediaplayer.release();
	} 
 
	///////////////////// 
	// Set up the view // 
	///////////////////// 
	private void setUpView() { 
		setContentView(R.layout.audioplayerwmediacontrol);
	} 
 
	@Override 
	public boolean onTouchEvent(MotionEvent event) {
		controller.show(0);
		return super.onTouchEvent(event);
	}