Code example for MediaController

Methods: isShowing, show

0
	} 
 
	@Override 
	public void onWindowFocusChanged(boolean hasFocus) {
		super.onWindowFocusChanged(hasFocus);
		if(hasFocus && begin && !controller.isShowing()) {
			begin = false;
			controller.show(0);
			mediaplayer.start();
		} 
	} 
 
	@Override 
	public void onDestroy() { 
		super.onDestroy(); 
		mediaplayer.release();
	} 
 
	///////////////////// 
	// Set up the view // 
	/////////////////////