Translations:Android Training/Starting Another Activity/4/en: Unterschied zwischen den Versionen

Aus Android Wiki
(Neue Version von externer Quelle importiert)
 
(kein Unterschied)

Aktuelle Version vom 20. Dezember 2015, 21:22 Uhr

Nachricht im Original (Android Training/Starting Another Activity)
In order for the system to match this method to the method name given to <code>android:onClick</code>, the signature must be exactly as shown. Specifically, the method must:
#* Be public
#* Have a void return value
#* Have a <code>[http://developer.android.com/reference/android/view/View.html View]</code> as the only parameter (this will be the <code>View</code> 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.

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.