Code example for MediaController

Methods: hideisShowing

0
        mediaPlayer.start();
    }	 
     
    @Override 
	public boolean onTouchEvent(MotionEvent ev) {
        if (controller.isShowing()) {
            controller.hide();
        } else { 
            controller.show();
        } 
        return false; 
    } 
 
	 
     
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE