The Emotions 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.
EmoQuestionsActivity) introduces children to a range of human feelings through illustrated flashcard questions. Each round presents one emotion image alongside three picture choices, and the child taps the card they think matches. Correct picks are celebrated with a green dot, while wrong choices are gently hidden so focus stays positive. After all ten questions the app tallies the result and — when played standalone — hands off to the Scoring page for a star-rated reward.
Launching the Activity
EmoQuestionsActivity is started from FinalmainScreen by calling showemoact(). The Intent extra value controls whether the activity runs standalone (17) or as part of a Sequence Game chain (values 1–7).
When
value is between 1 and 7 the activity is running inside a Sequence Game. It calls finish() after the last question instead of launching ScoringPage, so control returns automatically to the next queued category.Layout
| Property | Value |
|---|---|
| Layout file | emoquestionact |
| Package | com.kidsapp.fiver1 |
| Java class | EmoQuestionsActivity |
| Sequence category label | "Emotions" |
Question Bank
The activity holds ten drawable-based questions (e0–e9). Each question carries three option drawables and one correct answer index (0, 1, or 2).
Questions Array
Drawable IDs
e0 through e9 — one image per question, sourced from res/drawable.Options Array
answers[10][3] — three drawable option IDs for every question, presented as tappable cards.Correct Answer Key
| Question index | Drawable | Correct option index |
|---|---|---|
| 0 | e0 | 0 (first card) |
| 1 | e1 | 2 (third card) |
| 2 | e2 | 2 (third card) |
| 3 | e3 | 0 (first card) |
| 4 | e4 | 0 (first card) |
| 5 | e5 | 0 (first card) |
| 6 | e6 | 2 (third card) |
| 7 | e7 | 1 (second card) |
| 8 | e8 | 2 (third card) |
| 9 | e9 | 1 (second card) |
How a Round Plays
Shuffle
random_number_generator() fills queue[] with a randomised order of the ten question indices so every session feels fresh.Display question
displayquestion() loads the current emotion drawable into the question view and populates the three option ImageView cards.Child taps a card
onClickCard(View) fires and delegates to condition(), which compares the tapped card’s index against correct_answer[current].Feedback
A correct tap shows a green dot overlay. A wrong tap hides that option’s
LinearLayout so the child can try the remaining cards.Advance
After a correct answer the next entry from
queue[] is loaded. This repeats until all ten questions are answered.Feedback Behaviour
Wrong Answer
The tapped option’s
LinearLayout is set to GONE, narrowing the choices so the child can self-correct without feeling stuck.Correct Answer
A green dot indicator becomes visible, confirming the right choice before the activity advances to the next question.
End-of-Quiz Logic
Wrong is used to award stars, and the Sequence Game page for how the seq value is assigned.