I have a button in my layout with the following attribute: android: onClick = "nextQ" and in my java code the following method:
public int nextQ()
{
return answer;
}
Where the answer is an integer. Whenever a button is pressed, the application closes. Any idea why it breaks?
user754691
source
share