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 Sequence Game (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 (sp1sp7) stacked vertically on screen. Each spinner offers the same eight options:
OptionDescription
NullSkip this slot — no quiz is launched for it
EmotionsLaunches EmoQuestionsActivity
FoodLaunches the Food quiz Activity
ShapesLaunches the Shapes quiz Activity
TransportLaunches TravelAct
NumberLaunches the Number quiz Activity
AnimalsLaunches the Animals quiz Activity
ThingsLaunches Vehicals_Act
After the player (or parent) configures the spinners, tapping the sqstart ImageView fires off the chain.

Spinner-to-Value Mapping

Each spinner maps to a specific value 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).
Spinnervalue sentPosition in chain
sp1 (top)7First in sequence
sp26Second
sp35Third
sp44Fourth
sp53Fifth
sp62Sixth
sp7 (bottom)1Last 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 a value of 17 (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.
sqstart tapped
    └─► sp1 category Activity starts  (value=7)
            └─► finish() called after Q10
                └─► sp2 category Activity starts  (value=6)
                        └─► finish() called after Q10
                            └─► … continues to sp7 (value=1)
                                    └─► finish() → returns to Sequencegame
Selecting only a few spinners (leaving the rest as Null) is a great way to create a focused two- or three-category session without padding it out to all seven slots.

Setting Up a Sequence

1

Open Sequence Game

Tap the Sequence Game button on FinalmainScreen. The Sequencegame activity opens, displaying seven spinner rows and the start button.
2

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.
3

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.
4

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.
5

Chain complete

After the last category (sp7 or whichever is the last non-null slot) calls finish(), the player is returned to the Sequencegame screen.

Example Configuration

SpinnerSelectionValue sent
sp1Animals7
sp2Food6
sp3Numbers5
sp4Null— (skipped)
sp5Null— (skipped)
sp6Null— (skipped)
sp7Null— (skipped)
This produces a three-category chain: Animals → Food → Numbers, totalling 30 questions with no interruption between topics.

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 17. After question 10, finish() is called — no ScoringPage — and the next category in the chain starts immediately.
  • Emotions Quiz — can be selected as Emotions in any spinner slot
  • Transport Quiz — can be selected as Transport in any spinner slot
  • Things Quiz — can be selected as Things in any spinner slot
  • Scoring Page — shown only after a standalone quiz, not during a sequence chain

Build docs developers (and LLMs) love