The Animals Quiz (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SaadAhmed1122/Kids_learnig_App/llms.txt
Use this file to discover all available pages before exploring further.
Animals_question) challenges young learners to identify animals from photographs. Each round presents ten randomly ordered animal images — one at a time in full-screen landscape — and the child taps one of three picture options to select their answer. Correct taps light up a progress dot and move straight to the next question, while incorrect taps simply hide that wrong option so the child can try again from the remaining choices.
Launching the Animals Quiz
The Animals Quiz is started fromFinalmainScreen by the animalact() method. A value of 99 is passed as an Intent extra, placing the activity in standalone mode so that a ScoringPage is shown when all ten questions are complete.
Any
value outside the range 1–7 (including 99) triggers standalone mode. The quiz finishes by launching ScoringPage rather than returning to a Sequence orchestrator.Quiz Data
Animals_question defines its ten questions and answer options as int arrays of drawable resource IDs. The layout file is activity_animals_question.
Question Images
| Question # | Drawable |
|---|---|
| 1 | b0 |
| 2 | b1 |
| 3 | b2 |
| 4 | b3 |
| 5 | b4 |
| 6 | b5 |
| 7 | b6 |
| 8 | b7 |
| 9 | b8 |
| 10 | b9 |
Correct Answers
Each value incorrect_answer[] maps to the option position: 0 = left, 1 = middle, 2 = right.
| Question # | Correct Option |
|---|---|
| 1 | Left (0) |
| 2 | Right (2) |
| 3 | Left (0) |
| 4 | Middle (1) |
| 5 | Left (0) |
| 6 | Right (2) |
| 7 | Middle (1) |
| 8 | Right (2) |
| 9 | Left (0) |
| 10 | Middle (1) |
Question Flow
Random Order Generated
On
onCreate(), random_number_generator() shuffles indices 0–9 into queue[]. No two sessions present questions in the same order.Question Displayed
displayquestion() loads questions[queue[counter]] into the question ImageView and populates the three option ImageViews from the matching row in answers[][].Answer Evaluated
condition() checks which option LinearLayout was pressed against correct_answer[queue[counter]]:- Correct — increments
correct_ans_count, lights the next green dot (grenc1–grenc10), and callsdisplayquestion(). - Wrong — increments
wrong_ans_countand hides that option’sLinearLayoutso it cannot be tapped again.
Scoring
Correct Answers
Tracked in
correct_ans_count. Each correct tap advances the green dot row and moves to the next question immediately.Wrong Answers
Tracked in
wrong_ans_count. The tapped option is hidden; the child may still tap remaining options. The total is sent to ScoringPage as the Wrong extra.Sequence Mode
When launched from the Sequence game withvalue between 1 and 7, the Animals Quiz calls finish() instead of starting ScoringPage. The show_mark(int count) method overlays checkmark images on the progress dots for steps already completed earlier in the sequence.