Shelves / Mobile Engineering
Software Engineering · Volume 22
Mobile Engineering
Building Android and iOS apps that are fast, frugal, secure and reliable on real phones and real networks, from first principles: the app lifecycle and the single UI thread, declarative UI and architecture with Compose and SwiftUI, cross-platform frameworks and their boundaries, networking where round trips dominate, offline-first sync and conflicts, startup, memory and images, background work, push and battery, mobile security, and releasing software you can't roll back. Labs measure the mechanisms directly (frame budgets, re-renders, bridge costs, mobile latency, sync conflicts, image memory, radio energy, certificate pinning, staged rollouts), and the volume ends with TiffinBox's customer and rider apps as a project.
Two ways to read this book
Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).
How to use this book
- Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
Status as of November 2026: current platform releases are Android 17 and iOS 27. The lab machine has no Android emulator or iOS simulator, so the labs measure the underlying mechanisms with Node.js, Python, Pillow and real TLS connections, with real output shown; simulations (sync conflicts, radio energy with assumed LTE parameters, staged rollouts with assumed adoption) are labelled, and every lab ends with the equivalent experiment to run on a device.
Contents
- SC·00Start Here: The Phone Is a Different ComputerFor web and backend engineers moving to mobile, and for Android developers broadening to iOS and cross-platform work: what makes mobile engineering…3 min
- SC·01Platforms, Lifecycle and the Main ThreadWhat makes mobile different from every other platform in these volumes: a small, battery-powered computer that the operating system can pause or kill…8 min
- SC·02Native UI and App Architecture: Android and iOSBuilding native apps the modern way on both platforms: Kotlin with Jetpack Compose and Swift with SwiftUI, declarative UI as a function of state…8 min
- SC·03Cross-Platform FrameworksSharing code between Android and iOS without paying for it later: how React Native works (JavaScript with native views, the New Architecture's JSI…8 min
- SC·04Networking on Mobile NetworksDesigning app–server communication for networks with high and variable latency, loss and frequent disconnection: what a mobile round trip costs and…8 min
- SC·05Offline-First and SyncMaking apps work without a network and converge when it returns: the local database as the UI's source of truth, a pending-operations outbox with…8 min
- SC·06Performance and MemoryMaking apps fast and frugal on real devices: cold, warm and hot startup and how to shorten them, app size and why it affects installs, memory limits…7 min
- SC·07Background Work, Push and BatteryDoing work when the app isn't on screen without draining the battery or being killed for it: how the cellular radio spends energy (wake-up, tail…9 min
- SC·08Mobile SecuritySecuring apps that run on devices you don't control: why the client is untrusted and anything shipped in it is public, secure storage with the…8 min
- SC·09Testing, Release and ObservabilityShipping mobile apps when every release is installed, not deployed: the mobile test pyramid (unit, integration, UI, screenshot, device-farm and…8 min
- SC·10Mobile ProjectsThe TiffinBox customer and rider apps as a project in six milestones: an offline-first calendar with a sync engine and shared Kotlin logic, native…3 min