Translations:Android Training/Starting Another Activity/3/en

Version vom 20. Dezember 2015, 21:22 Uhr von FuzzyBot (Diskussion | Beiträge) (Neue Version von externer Quelle importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

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.

  1. In the java/com.mycompany.myfirstapp directory, open the MyActivity.java file.
  2. Within the MyActivity class, add the sendMessage() method stub shown below.