Button eventButton = (Button)findViewById(R.id.eventButton);
numClicks = 0;
eventButton.setOnClickListener(
new Button.OnClickListener() {
public void onClick(View v) {
numClicks = numClicks + 1;
TextView eventText = (TextView) findViewById(R.id.eventMessage);
eventText.setText("Good Job Hoss! You Clicked the Button " + Integer.toString(numClicks) + " times");
}
}
);
eventButton.setOnLongClickListener(
new Button.OnLongClickListener() {
public boolean onLongClick(View v) {
numClicks = 0;
TextView eventText = (TextView) findViewById(R.id.eventMessage);
eventText.setText("Good Job Hoss! You reset the click counter");
return true;
}
}
);

With these functions it was easy to see what happens when you set the long click listener to return false vs. true.
When it returns true, the OnClickListener doesn't execute.
When it returns false, the OnClickListener does execute.

I'm still hazy on the function call to declare a new function, though. Is that explained in a java tutorial somewhere?

P.S. If you want to try yourself, don't forget to initialize the numClicks int variable inside the MainActivity class.