Skip to main content

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.

The Animals Quiz (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 from FinalmainScreen 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.
// FinalmainScreen.java — animalact()
Intent ii = new Intent(FinalmainScreen.this, Animals_question.class);
ii.putExtra("value", 99);
startActivity(ii);
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
1b0
2b1
3b2
4b3
5b4
6b5
7b6
8b7
9b8
10b9

Correct Answers

Each value in correct_answer[] maps to the option position: 0 = left, 1 = middle, 2 = right.
int[] correct_answer = {0, 2, 0, 1, 0, 2, 1, 2, 0, 1};
Question #Correct Option
1Left (0)
2Right (2)
3Left (0)
4Middle (1)
5Left (0)
6Right (2)
7Middle (1)
8Right (2)
9Left (0)
10Middle (1)

Question Flow

1

Random Order Generated

On onCreate(), random_number_generator() shuffles indices 0–9 into queue[]. No two sessions present questions in the same order.
2

Question Displayed

displayquestion() loads questions[queue[counter]] into the question ImageView and populates the three option ImageViews from the matching row in answers[][].
3

Child Taps an Option

onClickCard(View) fires on any tap and immediately calls condition().
4

Answer Evaluated

condition() checks which option LinearLayout was pressed against correct_answer[queue[counter]]:
  • Correct — increments correct_ans_count, lights the next green dot (grenc1grenc10), and calls displayquestion().
  • Wrong — increments wrong_ans_count and hides that option’s LinearLayout so it cannot be tapped again.
5

Quiz Complete

After the tenth correct answer condition() launches ScoringPage:
Intent in = new Intent(Animals_question.this, ScoringPage.class);
in.putExtra("Wrong", wrong_ans_count);
startActivity(in);

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 with value 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.
The Sequence game identifies this category by the name “Animals” in its spinner selection logic.

Build docs developers (and LLMs) love