Translations:Android Training/Starting Another Activity/3/en
Jump to navigation Jump to search
android:onClick attribute’s value,
"sendMessage", is the name of a method in your activity that the system calls when the user clicks the button.
- In the
java/com.mycompany.myfirstappdirectory, open the
- Within the
MyActivityclass, add the
sendMessage()method stub shown below.