Five Whys and a How
Y5 Kids Learning is an Android app for children aged 6–18 that combines three learning modes: Math Practice offers flexible arithmetic drills with immediate feedback; 5 Whys develops critical thinking through age-appropriate, step-by-step exploration of facts across science and social studies, with AI-generated illustrations; Question Paper Generation converts uploaded PDFs into personalized practice tests. Built with Kotlin, Jetpack Compose, and Firebase AI (Gemini 2.5 Flash), the app includes comprehensive progress tracking with visual charts to motivate learners and demonstrate improvement over time.
Tech Stack
Case Study (STAR Format)
Situation
School-going children aged 6–18 needed an engaging, comprehensive learning tool that could address multiple educational needs: fundamental math skills practice, critical thinking development, and exam preparation using their own study materials. Traditional learning apps often focused on single subject areas and lacked personalization, failing to leverage students' existing educational resources or provide integrated progress tracking across different learning modes.
Task
Develop an Android application that would:
- Provide adaptive math practice covering core arithmetic operations (addition, subtraction, multiplication, division) with immediate feedback
- Foster critical thinking skills through structured "5 Whys" analysis suitable for various age groups
- Enable personalized exam preparation by converting uploaded PDF study materials into practice question papers
- Track learning progress across all modules to motivate continuous improvement
- Deliver an intuitive, age-appropriate user experience using modern Android development practices
Action
Architecture & Technology Selection:
- Built the app using Kotlin 2.0 with Jetpack Compose and Material 3 for a modern, declarative UI
- Integrated Firebase AI (Gemini 2.5 Flash) for intelligent content generation and age-appropriate explanations
- Implemented Supabase backend (PostgreSQL, Storage, PostgREST) for scalable data management
- Used Firebase Auth with anonymous authentication for frictionless user onboarding
- Deployed Vico charting library for visual progress tracking
- Integrated PdfBox-Android for PDF processing and Ktor client for network operations
- Targeted Android SDK 24–35 for broad device compatibility
Feature Implementation:
Math Practice Module:
- Developed flexible practice sessions with 3-digit arithmetic across all four operations
- Created configurable question counts (5, 10, or 20 questions) and mixed operation modes
- Implemented immediate visual feedback system (green for correct, red for incorrect with correct answer displayed)
- Designed custom numeric keyboard optimized for math input
- Built progress indicator and performance-based feedback messaging (e.g., "Great job!" for 80%+ accuracy)
5 Whys Critical Thinking Module:
- Designed flashcard-style flow guiding users through root-cause analysis
- Implemented age-appropriate explanation generation (tailored for 6–18 age range)
- Created smooth transitions between sequential "why" levels
- Integrated optional AI-generated illustrations to enhance understanding
- Built topic coverage spanning science (physics, chemistry, biology) and social studies (history, civics, geography, economics)
- Developed fact carousel with example prompts to inspire user inquiry
- Added connected fun facts to encourage further exploration
Question Paper Generation:
- Built PDF upload and parsing functionality to extract content from textbooks and notes
- Implemented AI-powered question generation focused on medium-to-hard difficulty levels
- Created personalized test generation that reuses students' existing study materials
- Designed question paper interface for exam-like practice experience
Progress Tracking System:
- Developed comprehensive score history tracking for both math and question-paper sessions
- Implemented visual charts showing improvement trends over time
- Created motivational feedback based on progress metrics
Result
Successfully launched Y5 Kids Learning (package: com.y51h.students) as a comprehensive Android learning platform that:
- Unified multiple learning modes into a single app, eliminating the need for separate tools for math practice, critical thinking, and exam preparation
- Personalized the learning experience by transforming students' own PDF materials into practice tests, making study more relevant and efficient
- Made learning measurable through integrated progress tracking with visual charts, enabling students and parents to see concrete improvement over time
- Leveraged modern AI capabilities to provide age-appropriate explanations, generate illustrations, and create meaningful questions from uploaded content
- Delivered immediate feedback in math practice, reinforcing learning and maintaining engagement through visual cues and encouraging messages
- Fostered critical thinking through the structured 5 Whys methodology, helping students develop analytical skills beyond rote memorization
- Maintained technical excellence using cutting-edge Android development practices (Kotlin 2.0, Jetpack Compose, Material 3) for a smooth, responsive user experience
The app successfully addresses the educational needs of a broad age range (6–18) while providing parents and educators with visibility into student progress across multiple learning dimensions.