Suppose you define android:onClick=\"doClick\" in your Activity as
android:onClick=\"doClick\"
Activity
protected void doClick(View view) { }
The document
As per "The Java™ Tutorials" : The protected modifier specifies that the member can only be accessed within its own package (as with package-private) and, in addition, by a subclass of its class in another package