Basically I'm trying to create an app where it generates random questions and displays them in a dialog box. I've managed to create a dialog box ok but incorporating the sql database full of questions and answers is proving difficult. I've been trying to follow this tutorial and it's the querying and actual gathering of information that I'm stuck on.
So the overall picture is a randomly generated question from a SQL database to appear in a dialog and once the user has clicked on an option, it displays whether the answer is correct in a Toast widget according to what the answer is, which is also in the SQL database.
Anyone know how I would obtain information from the database/generate a random field from the database?
Any ideas, references to resources, or help will be much appreciated!