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 Things Quiz (Vehicals_Act) helps young learners recognise the everyday objects they encounter at home — furniture, appliances, tools, and more. Despite the class name, this activity focuses on household things rather than vehicles. Each of its ten picture questions shows a target object alongside three answer images; the child taps the matching card, receives instant visual feedback, and works through the full set before earning a star rating. The activity slots seamlessly into both standalone play and multi-category Sequence Game sessions.

Launching the Activity

Vehicals_Act is started from FinalmainScreen by calling showthings(). The Intent extra value determines the play mode: 172 for standalone, or 17 when the activity is a step in a Sequence Game chain.
Intent ii = new Intent(FinalmainScreen.this, Vehicals_Act.class);
ii.putExtra("value", 172);
startActivity(ii);
When value is 17, the activity is running inside a Sequence Game. It calls finish() on completion rather than launching ScoringPage, handing control back to the sequence chain automatically.

Layout

PropertyValue
Layout fileactivity_vehicals_
Packagecom.kidsapp.fiver1
Java classVehicals_Act
Sequence category label"Things"

Question Bank

Ten drawable images (q0q9) represent the household-object questions. Each question is backed by three option drawables and one correct answer index (0, 1, or 2).

Questions Array

Drawable IDs q0 through q9 — one household-object image per question, sourced from res/drawable.

Options Array

answers[10][3] — three drawable option IDs per question, rendered as side-by-side tappable image cards.

Correct Answer Key

Question indexDrawableCorrect option index
0q00 (first card)
1q12 (third card)
2q22 (third card)
3q30 (first card)
4q40 (first card)
5q50 (first card)
6q62 (third card)
7q71 (second card)
8q82 (third card)
9q91 (second card)

How a Round Plays

1

Shuffle

random_number_generator() fills queue[] with a randomised ordering of the ten question indices, so children encounter questions in a different sequence each time they play.
2

Display question

displayquestion() loads the current q{n} drawable into the question ImageView and populates the three option cards with their respective drawables.
3

Child taps a card

onClickCard(View) fires and calls condition(), which checks the tapped card’s index against correct_answer[current].
4

Feedback

A correct tap makes a green dot indicator visible. A wrong tap sets that option’s LinearLayout to GONE, quietly removing it from view.
5

Advance

After a correct tap, the next entry from queue[] drives displayquestion(). The cycle continues until all ten household-object questions are answered.
6

Finish

In standalone mode (seq == 0), the activity starts ScoringPage with Wrong = wrong_ans_count. In sequence mode (seq 17), it calls finish() so the Sequence Game advances to the next category.

Feedback Behaviour

Wrong Answer

The tapped option’s LinearLayout is set to GONE, eliminating that distractor and helping the child narrow down the answer through logical deduction.

Correct Answer

A green dot overlay appears on the correct card, giving clear positive reinforcement before the activity moves on to the next question.
The Things category pairs well with Emotions or Transport in a Sequence Game — combining everyday objects with feelings and vehicles covers a broad vocabulary range in a single chained session.

End-of-Quiz Logic

if (seq == 0) {
    Intent intent = new Intent(Vehicals_Act.this, ScoringPage.class);
    intent.putExtra("Wrong", wrong_ans_count);
    startActivity(intent);
} else {
    finish();
}
See the Scoring page for how the Wrong count maps to star ratings and reward images, and the Sequence Game page for how seq values are assigned when categories are chained together.

Build docs developers (and LLMs) love