I'm building a quiz app in Android Studio. One of my questions has an EditText to write in the answer. I am stuck on how to determine the score for this answer. Is it a boolean or a string? Here is what I have:
EditText q4 = (EditText)findViewById(R.id.answer4_Wakanda);
Boolean q4RightAnswer = q4.isChecked();
I know this is wrong. I had a string and changed it to a boolean, which is where I got stuck. It's possible that the whole thing is wrong. I just want my app to recognize the right answer, in order to give it 1 point.
Any help is greatly appreciated. I am a new coder so I could really use a hand!