The Transport 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.
TravelAct) takes children on a picture-based journey through vehicles and travel modes from around the world. Each of the ten questions displays a transport image and three answer choices; tapping a card triggers instant visual feedback. Correct picks earn a green dot, wrong ones vanish from view, and after all ten questions the app either shows a star-rated score (standalone mode) or hands control to the next category in a Sequence Game chain.
Launching the Activity
TravelAct is started from FinalmainScreen by calling travelAct(). The Intent extra value signals whether the session is standalone (72) or part of a Sequence Game (1–7).
When
value is 1–7, the activity is running inside a Sequence Game chain. It calls finish() on completion instead of launching ScoringPage, passing control automatically to the next selected category.Layout
| Property | Value |
|---|---|
| Layout file | activity_travel |
| Package | com.kidsapp.fiver1 |
| Java class | TravelAct |
| Sequence category label | "Transport" |
Question Bank
Ten transport drawable images (t0–t9) make up the question pool. Each question is paired with three option drawables and a single correct answer index.
Questions Array
Drawable IDs
t0 through t9 — one vehicle or travel-mode image per question, loaded from res/drawable.Options Array
answers[10][3] — three drawable option IDs per question, displayed as tappable image cards side-by-side.Correct Answer Key
| Question index | Drawable | Correct option index |
|---|---|---|
| 0 | t0 | 0 (first card) |
| 1 | t1 | 2 (third card) |
| 2 | t2 | 0 (first card) |
| 3 | t3 | 1 (second card) |
| 4 | t4 | 0 (first card) |
| 5 | t5 | 2 (third card) |
| 6 | t6 | 1 (second card) |
| 7 | t7 | 2 (third card) |
| 8 | t8 | 0 (first card) |
| 9 | t9 | 1 (second card) |
How a Round Plays
Shuffle
random_number_generator() populates queue[] with a randomised order of the ten question indices, ensuring no two sessions feel identical.Display question
displayquestion() renders the current transport drawable in the question view and loads the three option images into their respective ImageView cards.Child taps a card
onClickCard(View) fires and forwards to condition(), which compares the tapped card’s position index against correct_answer[current].Feedback
A correct tap reveals a green dot overlay on that card. A wrong tap hides that option’s
LinearLayout, gently reducing the choices for the child.Advance
After a correct answer the next index from
queue[] is loaded via displayquestion(). This repeats until all ten questions are answered.Feedback Behaviour
Wrong Answer
The selected option’s
LinearLayout is set to GONE, narrowing the visible choices without interrupting the game flow.Correct Answer
A green dot indicator appears on the correct card before the activity advances to the next question automatically.
End-of-Quiz Logic
Wrong maps to star ratings, and the Sequence Game page for how the Sequence chain is constructed and how seq values are assigned.