onclick method for button in android studio code example Example: button android stdui Button b = findById();