Translations:Android Training/Starting Another Activity/3/en: Unterschied zwischen den Versionen
(Neue Version von externer Quelle importiert) |
(kein Unterschied)
|
Aktuelle Version vom 20. Dezember 2015, 21:22 Uhr
The 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.myfirstapp
directory, open theMyActivity.java
file. - Within the
MyActivity
class, add thesendMessage()
method stub shown below.