How I Built an AI That Teaches a Lesson on a Whiteboard in 6 Days
A hackathon build where a language model plans a lesson and the whiteboard performs it, writing, pointing and narrating, with four layers of checks so the model can't break the app.
Writing
Engineering investigations rather than tutorials. Mental models that turned out to be wrong, and what replaced them.
A hackathon build where a language model plans a lesson and the whiteboard performs it, writing, pointing and narrating, with four layers of checks so the model can't break the app.
Our classroom panels showed "App isn't responding" about 50 seconds after every restart. 93% of those freezes traced back to Android's text-to-speech, and the last one came from just creating it.
Play Console said our whiteboard app was slow to open; my own tests said it was fast. Finding out why both were right, then cutting startup from 2.4 to 1.8 seconds on the panel.
Joining a two-hour lecture recording on our classroom panels kept teachers waiting over four minutes. The slow part wasn't the video at all, and fixing it brought the merge down to 2.4 seconds.
Four bugs from an assistant that draws over other apps: a check that runs a frame late, a keyboard that wouldn't open, windows test tools can't see, and code that ran before the device unlocked.
Dragging moved the wrong way, an icon landed mid-screen, a panel covered the video. All three came from one wrong assumption about right-to-left languages, and one rule fixed them.
Android reported our classroom camera's mic array as a single channel. Three days of digging found the real microphones, and proved there were eight of them.
Letting teachers pick the app's language instead of the phone's, in an app that floats over other apps: what Android handles for you, what it doesn't, and a crash on a device nobody expected.
Building search that works with no internet on classroom panels: why a small custom index beat the database's built-in search, and how one typo stopped blanking the screen.
A student taps "join my class", installs the app, and lands on the home screen. How I replaced scattered link handling with one router for 57 links that survives install and login.
Blank screens, crashes and broken video in Android apps on classroom panels. Each looked like a web page problem, and each was really in how Android created, sized or hosted the WebView.
Building AI answers from NCERT textbooks with no internet on a classroom panel. The model was the easy part; the PDFs, the chunking and the size of the index decided accuracy.
A teacher signs in to the whiteboard, and the AI assistant should know who they are. How I did it without either app ever handing the other a password, token or cookie.
Dispatchers.IO is not a pool of IO threads. What the CoroutineScheduler really does, and the mental model that replaced mine.
If the thread is released while a request is in flight, what is actually waiting for the response? Coroutines, threads, sockets, and continuations, separated.