call a function from button click android studio code example Example: onclick method android public void clickFunction (View view){}