The Sequence Game (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.
Sequencegame.java) is the Kids Learning App’s most flexible mode. Instead of playing a single category in isolation, children — or the adults setting up a session — can line up to seven quiz categories in any order using a column of dropdown spinners. Tapping the start button then launches each selected quiz Activity one after another, with each quiz automatically handing off to the next when it finishes. Because the Sequence Game bypasses ScoringPage for every mid-chain quiz, the session flows without interruption until the very last category is complete.
How It Works
Sequencegame presents seven Spinner widgets (sp1–sp7) stacked vertically on screen. Each spinner offers the same eight options:
| Option | Description |
|---|---|
Null | Skip this slot — no quiz is launched for it |
Emotions | Launches EmoQuestionsActivity |
Food | Launches the Food quiz Activity |
Shapes | Launches the Shapes quiz Activity |
Transport | Launches TravelAct |
Number | Launches the Number quiz Activity |
Animals | Launches the Animals quiz Activity |
Things | Launches Vehicals_Act |
ImageView fires off the chain.
Spinner-to-Value Mapping
Each spinner maps to a specificvalue integer that is placed in the Intent extra when its category Activity is started. The value double-serves as the seq flag that tells each quiz Activity it is running in chain mode (not standalone).
| Spinner | value sent | Position in chain |
|---|---|---|
sp1 (top) | 7 | First in sequence |
sp2 | 6 | Second |
sp3 | 5 | Third |
sp4 | 4 | Fourth |
sp5 | 3 | Fifth |
sp6 | 2 | Sixth |
sp7 (bottom) | 1 | Last in sequence |
Any spinner left on
Null is skipped entirely — the Sequence Game simply does not start a quiz for that slot and moves on to the next non-null spinner.Sequence Flow
When a quiz Activity receives avalue of 1–7 (i.e. seq != 0), its internal condition() method calls finish() instead of starting ScoringPage. Because all the selected Activities were queued before the first one launched, returning from each finish() automatically brings the next Activity to the foreground.
Setting Up a Sequence
Open Sequence Game
Tap the Sequence Game button on
FinalmainScreen. The Sequencegame activity opens, displaying seven spinner rows and the start button.Select categories
Use each spinner dropdown to pick a quiz category for that slot. Leave any unwanted slots on
Null — those positions will be skipped automatically.Tap Start
Tap the sqstart
ImageView. The game reads each spinner from sp1 down to sp7, starts the first non-null category Activity with its corresponding value, and the chain begins.Play each quiz
Answer all ten questions in each category. On the final question the activity calls
finish(), and the next selected category appears without any results screen in between.Example Configuration
| Spinner | Selection | Value sent |
|---|---|---|
sp1 | Animals | 7 |
sp2 | Food | 6 |
sp3 | Numbers | 5 |
sp4 | Null | — (skipped) |
sp5 | Null | — (skipped) |
sp6 | Null | — (skipped) |
sp7 | Null | — (skipped) |
Standalone vs. Sequence Mode Comparison
Standalone Mode
Launched directly from
FinalmainScreen. The quiz Activity receives a category-specific value (e.g. 17, 72, 172). After question 10, ScoringPage opens and the child sees their star rating.Sequence Mode
Launched from
Sequencegame. Each Activity receives value 1–7. After question 10, finish() is called — no ScoringPage — and the next category in the chain starts immediately.Related Pages
- Emotions Quiz — can be selected as
Emotionsin any spinner slot - Transport Quiz — can be selected as
Transportin any spinner slot - Things Quiz — can be selected as
Thingsin any spinner slot - Scoring Page — shown only after a standalone quiz, not during a sequence chain