← Back to portfolio
featured · 02Android · Quiz Game

TrivialApp

A mobile trivia quiz game featuring multiple categories, difficulty levels, dynamic countdown timer, score tracking, dark mode and custom interactive rounds.

TrivialApp icon
TrivialApp
Android Quiz Experience
Min SDK 24Target SDK 34v1.0
KotlinJetpack ComposeCountdown TimerOpen Trivia DBDark Mode
Main Menu (Blue ITB Header)
scroll
Demo & Context

An interactive quiz game,
built with native Android.

The Project: Trivial App is a feature-packed mobile quiz application designed for fast-paced interactive trivia. Users select difficulty levels, category themes, and navigate multiple question rounds with instant feedback, scoring multipliers, and game results.

The Challenge: Managing real-time game state transitions alongside a strict countdown timer. The architecture required a reliable state machine to track round progression, prevent duplicate answers, handle timer expiration gracefully, and persist high scores locally.

Screenshots
7 screens

Main Menu (Blue ITB Header)1 / 7

Tech Stack
Language
Kotlin
Platform
Android SDK
UI System
Jetpack Compose
Game Logic
State Machine
Concurrency
Countdown Timer
Storage
SharedPreferences
Design
Material 3
Assets
Vector Graphics
Architecture
src/
engine/

Trivia Game Engine: State machine managing question rounds, timer ticks, score multiplier and round end evaluation.

data/

Question Provider Repository: Local JSON bank & REST API integration for dynamic difficulty and category filtering.

viewmodel/

QuizViewModel exposes reactive LiveData/StateFlow for current question, time remaining, score streaks and user selections.

ui/

Compose UI Screens: MenuScreen, GameplayScreen, ResultsScreen and SettingsScreen with smooth animated transitions.