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

From Android Wiki
Revision as of 20:22, 20 December 2015 by FuzzyBot (talk | contribs) (Neue Version von externer Quelle importiert)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In order for the system to match this method to the method name given to android:onClick, the signature must be exactly as shown. Specifically, the method must:

    • Be public
    • Have a void return value
    • Have a View as the only parameter (this will be the View that was clicked)

Next, you’ll fill in this method to read the contents of the text field and deliver that text to another activity.