Solved

Write a Code That Checks Whether the Button That Was

Question 31

Essay

Write a code that checks whether the button that was clicked is a button named b. If it is, it outputs to Logcat YES; otherwise, it outputs to Logcat NO (using the tag MA).
private class ButtonHandler implements View.OnClickListener
{
public void onClick( View v )
{
// Your code goes here
}
}

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions