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