how to use onclick to call methdo in androdid code example Example: onclick method android public void clickFunction (View view){}