AI-ASSISTED ANDROID APP DEVELOPMENT
Teacher Training Manual: Kotlin + Jetpack Compose
Target Audience: Grades 8-12
Duration: 2 Hours
Level: Beginner-Friendly
Updated: January 2025
📱 TABLE OF CONTENTS
1. Introduction for Teachers
2. Session Objectives
3. Session 1: Introduction to Android, Kotlin & AI
4. Session 2: Kotlin Basics
5. Session 3: Android Studio Installation
6. Session 4: Create Jetpack Compose Project
7. Session 4.5: Understanding Android Project Structure ⭐ NEW
1️⃣ INTRODUCTION TO ANDROID APPS, KOTLIN & AI (20 Minutes)
1.1 What is an Android App?
👨🏫 Teacher Explains:
Android apps run on Android phones, tablets, TVs, smart
devices
Examples students already use:
o WhatsApp
o YouTube
o Google Maps
o Paytm / PhonePe
“Today, you are not just using apps — you are building one.”
1.2 Why Kotlin? (Very Important for Schools)
👨🏫 Teacher Explains (Simple Language):
Kotlin is the official language for Android
Created to be:
o Easy to read
o Less error-prone
o Safer than Java
📊 Kotlin Usage Statistics (Student-Friendly)
✅ 70%+ of Android apps use Kotlin today
✅ Google officially recommends Kotlin
✅ Used by companies like:
o Google
o Netflix
o Pinterest
o Trello
o Uber
“If you learn Kotlin, you learn how real companies build apps.”
1.3 Why Jetpack Compose?
👨🏫 Explain Like This:
Old way → XML + Kotlin (more files, more confusion)
New way → Jetpack Compose
o UI written in Kotlin
o Less code
o Faster development
o Easier for beginners
“Jetpack Compose is like drawing UI using code.”
1.4 Role of AI in App Development
👨🏫 Teacher Explains Clearly:
AI helps developers:
o Generate code
o Reduce typing
o Fix errors
AI does NOT replace thinking
⚠️Important Rule for Students:
“AI writes code, WE understand & control it.”
2️⃣ KOTLIN BASICS – SIMPLE & PRACTICAL (20 Minutes)
2.1 Variables
val studentName = "Arun"
var rollNo = 12
val → fixed value
var → changeable value
2.2 Functions
fun greetStudent(name: String) {
println("Welcome $name")
Explain:
Functions are small helpers
Apps are built using many small functions
2.3 Compose Function Concept
@Composable
fun Greeting() {
Text("Hello Student")
👨🏫 Explain:
@Composable = UI function
UI is created using functions
3️⃣ ANDROID STUDIO INSTALLATION (10 Minutes)
Steps:
1. Open browser
2. Visit: [Link]/studio
3. Download Android Studio
4. Install → Next → Finish
4️⃣ CREATE JETPACK COMPOSE PROJECT (10 Minutes)
Steps:
1. Open Android Studio
2. Click New Project
3. Select Empty Activity
4. Click Next
Project Settings:
Name: StudentRegistrationCompose
Language: Kotlin
Minimum SDK: API 21
✅ Use Jetpack Compose
Folder Explanation (Keep Simple)
[Link] → App logic + UI
setContent {} → App starts here
5️⃣ AI-GENERATED CODE WALKTHROUGH (20 Minutes)
5.1 Teach AI Prompting
👨🏫 Teacher Reads Prompt Slowly:
Create a Jetpack Compose Android app in Kotlin with:
1. Student Registration Screen
2. TextFields for Name, Class, Section, Roll Number
3. Save button
4. Search student by Roll Number
5. Display student details
Keep code simple for beginners
5.2 How to Use AI Output
AI gives:
o Composable functions
o State variables
Teacher:
o Explains line by line
o Students paste carefully
⚠️Teaching Moment:
“Errors mean learning, not failure.”
6️⃣ BUILD STUDENT REGISTRATION SCREEN (30 Minutes)
6.1 UI Using Jetpack Compose
Key Components:
TextField
Button
Column
Text
Explain:
Column → vertical layout
TextField → input
remember → store values
6.2 Saving Student Data
Explain conceptually:
Store student details in a list
Each student = one object
This introduces:
Logic
Memory
Real-world thinking
7️⃣ IMPLEMENT SEARCH FUNCTIONALITY (15 Minutes)
Steps:
1. Add Search TextField
2. Add Search Button
3. On click:
o Find student
o Show details
8️⃣ RUN, INSTALL & TEST APP (15 Minutes)
8.1 Run on Emulator
Click ▶ Run
App opens
8.2 Run on Real Mobile (WOW Moment)
Steps:
1. Enable Developer Options
2. Enable USB Debugging
3. Connect phone
4. Click Run