Multiple Choice
When a button is clicked on by the user, we want the method foo to execute. How do we do it (inside the Button element of the activity_main.xml file) ?
A) android:onClick="foo"
B) android="foo"
C) android:onClick="@activity/foo"
D) onClick="foo"
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q7: A CharSequence can be converted to a
Q8: The class that renders a keyboard is
Q9: It is possible to specify the transparency
Q10: Two constants that can be used as
Q11: If we want to handle persistent data
Q13: In order to retrieve a View that
Q14: A Model can be used only in
Q15: To position Views relative to each other,
Q16: Which class is not a subclass of
Q17: What is the correct definition of an