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 Numbers Quiz (NumbersAct) helps children build early numeracy skills by asking them to identify number images from a set of three picture options. Ten questions are served in randomised order across a full-screen landscape layout. Every correct tap lights up the next green progress dot and advances to the next question, giving children immediate positive feedback as they work through the set.

Launching the Numbers Quiz

FinalmainScreen starts NumbersAct through its numberact() method. A value of 37 is passed, placing the activity in standalone mode (outside the sequence range of 1–7) so that ScoringPage is shown on completion.
// FinalmainScreen.java — numberact()
Intent ii = new Intent(FinalmainScreen.this, NumbersAct.class);
ii.putExtra("value", 37);
startActivity(ii);
The Sequence game identifies this category by the name “Number” in its spinner selection logic.

Quiz Data

NumbersAct stores all question and answer resources as int arrays of drawable resource IDs. The layout file is activity_numbers.

Question Images

Question #Drawable
1n0
2n1
3n2
4n3
5n4
6n5
7n6
8n7
9n8
10n9

Correct Answers

Option positions: 0 = left, 1 = middle, 2 = right.
int[] correct_answer = {0, 2, 1, 0, 0, 0, 2, 1, 2, 1};
Question #DrawableCorrect Option
1n0Left (0)
2n1Right (2)
3n2Middle (1)
4n3Left (0)
5n4Left (0)
6n5Left (0)
7n6Right (2)
8n7Middle (1)
9n8Right (2)
10n9Middle (1)

Question Flow

1

Generate Random Queue

random_number_generator() fills queue[] with a shuffled permutation of 0–9, ensuring a fresh question order each session.
2

Display Question

displayquestion() sets the question ImageView to questions[queue[counter]] and populates the three option ImageViews from answers[queue[counter]].
3

Child Taps an Option

onClickCard(View) catches every tap on the three option cards and immediately calls condition().
4

Evaluate Answer

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

Quiz Complete

When the tenth question is answered correctly the activity checks the value extra and either starts ScoringPage or finishes:
// Standalone mode (value not in 1–7)
Intent in = new Intent(NumbersAct.this, ScoringPage.class);
in.putExtra("Wrong", wrong_ans_count);
startActivity(in);

Scoring

ScoringPage receives the Wrong extra containing the total wrong-answer count. The score screen can then display performance feedback to the child and parent.

Progress Indicators

The activity_numbers layout contains ten green dot ImageViews (grenc1grenc10) arranged in a horizontal row. Each time the child answers a question correctly, the next dot in the row becomes visible, giving a clear at-a-glance view of progress through the ten questions. Ten companion cross ImageViews (crossimg1crossimg10) serve as checkmark overlay positions in sequence mode.
Because questions are always shuffled, children can replay the Numbers Quiz multiple times without experiencing the same order — reinforcing recognition rather than memorisation of position.

Build docs developers (and LLMs) love