if (c2 == 0) {
for (i = 1; i < 50; i++) {
list.add(new Integer(i));
}
Collections.shuffle(list);
c2=1;
}
Ques = Sports.readQuestion(list.get(j));
Opta = Sports.readOptionA(list.get(j));
Optb = Sports.readOptionB(list.get(j));
Optc = Sports.readOptionC(list.get(j));
Optd = Sports.readOptionD(list.get(j));
global = Sports.readAnswer(list.get(j++));
}
If my database question are over then the app crashes.
if (c2 == 0) {
for (i = 1; i < 50; i++) {
list.add(new Integer(i));
If my database question are over then the app crashes.