How to get the number of options and the options list in android?
<p>In my project I need to display the questions and options for that questions. The options for that question are not fixed. For that i have to get the number of options first...so for that I have written the query 
<strong>SELECT COUNT(*) FROM 'my_options' WHERE question_id = "+Integer.parseInt(arraylist1.get(0))+"";</strong>   ...here based on the question id the options are displaying. Here I also need to set the options to checkboxes. <strong>How to get both the options and the option count in one single query? Do we need to write 2 different queries for getting the options and options count?</strong> </p>
