The Game Hub is the central screen of the Kids Learning App, surfacing a hand-picked library of HTML5 games inside a native Android WebView browser. When the app launches,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.
GameMainAct checks for an active internet connection and routes the user to either the game catalogue or a dedicated offline screen, keeping the experience smooth regardless of network status.
How It Works
GameMainAct (layout: activity_game_main) acts as the shell. When a user taps a game thumbnail, the activity packages the game’s URL as an Intent extra and starts GameLoader, which renders the game inside a full-screen WebView.
WebViewClient ensures page navigations stay inside the app rather than launching an external browser. The back-button handler lets players navigate WebView history before exiting:
The
INTERNET permission must be declared in AndroidManifest.xml for both AdMob and the game WebViews to function correctly.Internet Connectivity Check
Before displaying the hub,GameMainAct uses ConnectivityManager to verify network availability. If the device is offline, the app immediately redirects to the No_internet Activity so players see a friendly message instead of a broken WebView.
Most Played Games
The Most Played section features sixImageView tiles (mostplaygame1–mostplaygame6). Each tile opens its game in GameLoader via a Famobi-hosted URL.
| Slot | Game |
|---|---|
mostplaygame1 | Om Nom Run |
mostplaygame2 | Diamond Rush |
mostplaygame3 | Table Tennis World Tour |
mostplaygame4 | Archery World Tour |
mostplaygame5 | 3D Free Kick |
mostplaygame6 | 8 Ball Billiards Classic |
Popular Games
The Popular section presents fiveCardView tiles (popular1–popular5) that highlight trending titles curated for kids.
| Slot | Game |
|---|---|
popular1 | Bubble Tower 3D |
popular2 | Tower Crash 3D |
popular3 | Element Blocks |
popular4 | Moto X3M Pool Party |
popular5 | Gold Mine |
Bottom Navigation
The bottom navigation bar provides quick access to the app’s three main destinations.Home
Returns to the main
GameMainAct screen displaying Most Played and Popular sections.Category
Launches the
Category Activity where players can browse games by genre (Racing, Action, Cards, Classic).Contact
Opens the
Contact Activity, allowing users to reach the developer at [email protected].Bottom Sheet Options
Tapping the navigation sheetImageView (btmnav) slides up a bottom sheet dialog with three quick actions.
Share App
Share App
Rate on Play Store
Rate on Play Store
Launches the Play Store listing using a
market:// URI so users can leave a star rating without leaving the flow.Contact Developer
Contact Developer
Opens the device email client pre-addressed to
[email protected] so players or parents can send feedback directly.First-Time Launch Tracking
GameMainAct uses SharedPreferences to detect whether this is the user’s first launch. This flag can be used to display an onboarding walkthrough or splash content on the initial open only.