I am building a simple MCQ quiz app.
What I did was make a database on Parse.com and stored the questions, possible answers and the correct solution in it.
The Parse.com table can be seen in this image: https://i.sstatic.net/oydiB.png
As you can see, each object has a question, with 4 possible options and the correct answer.
Now, I want to show the questions inside a TextView and the options inside four different buttons. The user will click on the correct button to answer and the app will check if the correct button was pressed.
How do I retrieve contents from a specific object's attributes into a textview or a button?
Note: I tried following the online documentation for Queries. Their example showed how to retrieve objects by queries, but not how to show those objects in TextViews or how to store those objects inside a local variable. For example, I know how to query for a particular object, but once I do get the object how do I retrieve a particular attribute of that object, how do I get what is stored inside "optionA" field and store it inside a string?
I know there is a ListView adapter, but as you can see I can't use a ListView here. I tried the following code trying to convert the queried objects into strings, but that didn't work. I am really a newbie, so maybe I am doing something stupid. Please help me out.