Leanpub Header

Skip to main content

The Complete Guide to Android 17 Development

From Fundamentals to Production: Kotlin, Compose, Architecture, and Beyond

The Complete Guide to Android 17 Development
This book is 100% completeLast updated on 2026-11-18
+5,157 words in the last 30 days

Master Android 17 with a practical guide that takes you from Kotlin and Jetpack Compose fundamentals to building and publishing production-ready apps. Packed with clear explanations, real-world code examples, and modern best practices, this book helps you create high-quality Android applications with confidence.

Minimum price

$25.00

$35.00

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
322
Pages
About

About

About the Book

Android 17 "Cinnamon Bun" (API level 37) represents the latest evolution of Google's mobile platform, bringing significant changes to app architecture, privacy, performance, and developer tooling. This comprehensive guide walks you through everything from setting up your development environment to publishing production-quality apps on the Play Store. Whether you are a beginner learning Android for the first time or an experienced developer adapting to the latest APIs and behavior changes, this book provides the knowledge, code examples, and best practices you need to build modern, high-quality Android applications. Every chapter includes practical code samples, architectural patterns, troubleshooting guidance, and exercises designed to solidify your understanding.

Bundle

Bundles that include this book

Author

About the Author

Steve Publications

Steve is a technology professional with more than 20 years of experience spanning software development, server infrastructure, cybersecurity, vulnerability research and reverse engineering. His work focuses on understanding complex systems, uncovering security weaknesses and developing practical solutions that make technology more secure, reliable and effective.

Through Steve Publications, he collaborates with experienced researchers, engineers and industry experts to create practical, technically rigorous books on various topics not limited to self-improvement, software development, cybersecurity, cloud computing, DevOps, artificial intelligence and enterprise technologies. His mission is to make complex technical subjects accessible through clear explanations, real-world examples and hands-on exercises that help IT professionals, students and technology enthusiasts build valuable, practical skills.

Steve Publications embraces AI as a supporting tool for translation, proofreading and editorial refinement, not as a substitute for original research, technical expertise, or hands-on experience. Some contributors choose to publish under pseudonyms to protect their privacy or maintain professional boundaries.

Behind every book is a commitment to technical accuracy, practical relevance and continuous improvement. Our publications are written, reviewed and maintained by experienced professionals, with support from a private community of more than 420 engineers and researchers. Rather than prioritizing volume or mass-produced AI-generated content, we focus on delivering reliable, useful resources that readers can apply in real-world environments.

We also welcome experienced professionals who want to share their knowledge by writing or reviewing books, particularly in specialized and emerging technology fields. If you have expertise to contribute, we invite you to get in touch and explore opportunities to collaborate.

Our commitment is simple: To deliver books that respect our readers' time, support their professional growth and provide lasting practical value. If a book does not meet your expectations, Leanpub offers a 60-day money-back guarantee.

Contents

Table of Contents

From Fundamentals to Production: Kotlin, Compose, Architecture and Beyond

Introduction: Why Android 17 Matters

Who This Book Is For

What You Will Learn

How to Use This Book

Getting the Most Out of This Book

Chapter 1: The Android Platform - History, Architecture and Where We Are Today

From Android 1 to Android 17 - A Brief History

The Android Platform Architecture: HAL, Kernel, Runtime and Framework

  1. Linux Kernel
  2. Hardware Abstraction Layer (HAL)
  3. Android Runtime (ART)
  4. Native C/C++ Libraries
  5. Java API Framework
  6. System Applications

What Makes Android 17 Different: Key Themes and Design Philosophy

  1. Theme 1: Adaptive by Default
  2. Theme 2: Privacy Hardening
  3. Theme 3: Performance and Reliability
  4. Theme 4: Compose-First and the Intelligence System

The Android Open Source Project and the Release Cadence

Device Fragmentation in 2026 and API Level Targeting

  1. Understanding the Three API Level Attributes
  2. Google Play Requirements
  3. Choosing Your minSdk
  4. The Fragmentation Strategy

Chapter Summary

Exercises

Interview Questions

Chapter 2: Setting Up Your Development Environment

Installing Android Studio Rabbit

  1. Current Version: Android Studio Rabbit 2
  2. Toolchain Versions
  3. System Requirements
  4. Installation Steps
  5. First Launch Configuration

Configuring the Android 17 SDK and System Images

  1. Installing the Android 17 SDK Platform
  2. SDK Tools
  3. Configuring SDK Paths
  4. Verifying Your Installation

Emulator Setup: Hardware Acceleration, Virtual Devices and Cloud Testing

  1. Creating a Virtual Device
  2. Hardware Acceleration
  3. Emulator Performance Tips
  4. Essential Emulator Commands
  5. Cloud Testing Alternatives

Physical Device Configuration: USB Debugging, ADB and Fastboot

  1. Enabling Developer Options
  2. Connecting via USB
  3. ADB (Android Debug Bridge) Essentials
  4. Fastboot for Bootloader Operations

AI-Assisted Development Tools

Project Templates and Your First “Hello World”

  1. Creating a New Project
  2. Understanding the Project Structure
  3. The Empty Compose Activity Template
  4. Building and Running
  5. Troubleshooting Common Setup Issues

Chapter Summary

Exercises

Interview Questions

Chapter 3: Kotlin-First Development on Android

Why Kotlin Won: History, Adoption and Language Design

  1. The Android Adoption Story
  2. Why Kotlin Over Java for Android

Kotlin Fundamentals for Android: Types, Null Safety and Extension Functions

  1. Type System and Null Safety
  2. Smart Casts
  3. Data Classes
  4. Extension Functions
  5. When Expressions
  6. Scope Functions

Coroutines and Structured Concurrency on Android

  1. Understanding Coroutines
  2. Coroutine Scope and Lifecycle Awareness
  3. Dispatchers
  4. Structured Concurrency
  5. Coroutine Best Practices for Android

Kotlin Flow for Reactive Data Streams

  1. Creating and Collecting Flows
  2. Flow Operators
  3. StateFlow and SharedFlow
  4. Flow vs LiveData

Kotlin Multiplatform: Shared Business Logic

  1. What Can Be Shared
  2. What Remains Platform-Specific
  3. Basic KMP Project Structure
  4. When to Use KMP

Chapter Summary

Exercises

Interview Questions

Chapter 4: Modern App Architecture

The Evolution of Android Architecture: MVC to MVVM to MVI

  1. The Early Days: MVC and Code Behind
  2. MVP: The First Separation
  3. MVVM: Google’s Long-Standing Recommendation
  4. MVI: The Compose Era Contender

ViewModel, Repository and Use Case Patterns

  1. ViewModel: The State Holder
  2. Repository: The Data Mediator
  3. Use Cases: Single-Responsibility Actions

Dependency Injection: Hilt and Koin

  1. Hilt: Google’s Recommended DI Solution
  2. Koin: The Lightweight Alternative
  3. Hilt vs Koin Comparison

Navigation Component and Deep Linking

  1. Compose Navigation
  2. Navigation 3: The Compose-First Successor
  3. Deep Linking

Clean Architecture on Android 17

  1. Layer Responsibilities
  2. Module Boundaries

Chapter Summary

Exercises

Interview Questions

Chapter 5: Jetpack Compose - Declarative UI for Android

From XML Layouts to Compose: The Declarative Paradigm Shift

  1. The Imperative View System
  2. The Declarative Compose Approach
  3. Why Declarative?

Compose Fundamentals: Composables, State and Recomposition

  1. Writing Your First Composable
  2. State in Compose
  3. State Hoisting
  4. Recomposition
  5. Side Effects in Compose

Layouts, Modifiers and Custom Components

  1. Core Layout Composables
  2. Modifiers: Composable Configuration
  3. Lazy Lists: Efficient Scrolling
  4. Building Custom Components

Navigation in Compose: Single-Activity Architecture

  1. Bottom Navigation Pattern

Animations, Theming and Material Design 3

  1. Compose Animations
  2. Material Design 3 Theming
  3. Adaptive Layouts

Chapter Summary

Exercises

Interview Questions

Chapter 6: Android Views and Compose Interoperability

The View System: Layouts, Adapters and RecyclerView

  1. Core Layout Containers
  2. RecyclerView for Lists

Compose in Views: ComposeView and AndroidView

  1. Using Compose Inside an Activity or Fragment
  2. Compose in Fragments
  3. AndroidView: Embedding Views in Compose

Views in Compose: AndroidViewBinding

Incremental Migration Strategies

  1. Strategy 1: Compose Islands
  2. Strategy 2: Feature-by-Feature Migration
  3. Strategy 3: Bottom-Up Component Replacement
  4. Migration Checklist

When to Use Views vs Compose

Chapter Summary

Exercises

Interview Questions

Chapter 7: Lifecycle Management and Process Death

Activity Lifecycle: Creation, Resumption, Pausing and Destruction

  1. Lifecycle States
  2. The Critical Rule

Service Lifecycles: Foreground, Background and WorkManager

  1. Started Services
  2. Foreground Services

Configuration Changes and SavedStateHandle

  1. Surviving Configuration Changes
  2. Android 17’s Optimized Configuration Changes

Process Death and State Restoration

  1. Understanding Process Death
  2. Surviving Process Death
  3. State Restoration Strategy

Lifecycle-Aware Components and LifecycleOwner

  1. Lifecycle Observer Pattern
  2. collectAsStateWithLifecycle

Chapter Summary

Exercises

Interview Questions

Chapter 8: Permissions, Security and Privacy in Android 17

The Permission Model: Normal, Dangerous and Special Permissions

  1. Permission Categories
  2. Declaring Permissions in the Manifest

Runtime Permissions and Scoped Storage

  1. Requesting Dangerous Permissions
  2. Permission Groups
  3. Scoped Storage

Android 17 Privacy Enhancements: Photo Picker, Notification Permissions and More

  1. ACCESS_LOCAL_NETWORK Permission
  2. Android Contacts Picker
  3. OTP Protection for SMS Messages
  4. Encrypted Client Hello (ECH)

Security Best Practices: Keystore, Encryption and Network Security Config

  1. Android Keystore System
  2. Network Security Configuration

App Sandbox and Inter-Process Communication

  1. The Android Sandbox
  2. Content Providers for Safe Data Sharing
  3. Android 17 Security Changes

Chapter Summary

Exercises

Interview Questions

Chapter 9: Background Processing and Battery Optimization

Background Execution Limits and Android 17 Restrictions

  1. Android 17’s App Memory Limits

WorkManager: Deferrable, Guaranteed Background Work

  1. Basic Work Request
  2. Periodic Work
  3. Work Chains and Continuations
  4. Observing Work Status

Foreground Services and Foreground Service Types

  1. Declaring Foreground Service Types
  2. Foreground Service Types Available
  3. Android 17 Background Audio Hardening

JobScheduler and AlarmManager for Scheduled Tasks

  1. JobScheduler for Constraint-Based Work
  2. AlarmManager for Precise Timing

Battery Optimization: Doze Mode, App Standby and Power Profiles

  1. Doze Mode
  2. App Standby Buckets
  3. Power Optimization Best Practices

Chapter Summary

Exercises

Interview Questions

Chapter 10: Networking and Data Storage

HTTP Client Libraries: Retrofit, Ktor and OkHttp

  1. Retrofit: The Industry Standard
  2. Ktor Client: The Multiplatform Alternative
  3. OkHttp Interceptors for Cross-Cutting Concerns

JSON Serialization: Kotlinx Serialization and Moshi

  1. Kotlinx Serialization
  2. Moshi with Kotlin Codegen

Room Database: Entities, DAOs and Migrations

  1. Defining Entities
  2. DAO (Data Access Object)
  3. Database with Migrations

DataStore: Preferences and Proto-based Storage

  1. Preferences DataStore
  2. Proto DataStore

Caching Strategies and Offline-First Architecture

  1. Repository with Cache-Then-Network Pattern
  2. Offline-First Principles

Chapter Summary

Exercises

Interview Questions

Chapter 11: Media, Graphics and Sensors

CameraX and the Modern Camera API

  1. Android 17 Camera and Media Enhancements

Audio Playback: ExoPlayer, Media3 and AudioFocus

  1. Media3 ExoPlayer
  2. AudioFocus Management

Video Recording and Processing

  1. MediaRecorder for Video Capture

Skia, Canvas and Custom Drawing

  1. Custom Compose Drawings
  2. WebGPU for Managed Graphics Code

Sensor APIs: Accelerometer, Gyroscope, Location and Geofencing

  1. SensorManager for Device Sensors
  2. Location and Geofencing

Chapter Summary

Exercises

Interview Questions

Chapter 12: AI, On-Device ML and Android 17 Intelligent Features

TensorFlow Lite on Android: Model Loading and Inference

  1. Setting Up LiteRT
  2. Running Inference

MediaPipe Tasks: Vision, Audio and NLP

  1. Image Classification with MediaPipe
  2. Object Detection

Hardware Acceleration and the Android 17 NPU Gate

On-Device LLMs and Gemini SDK Integration

  1. MediaPipe LLM Inference API
  2. Gemini SDK for Android

Android 17: The Intelligence System - AppFunctions and Android MCP

Android 17 AI Features: Live Captions, Translation and Smart Compose

  1. Live Captions
  2. On-Device Translation
  3. Smart Compose and Predictive Text

Chapter Summary

Exercises

Interview Questions

Chapter 13: Performance Optimization and Profiling

Android Studio Profiler: CPU, Memory and Network

  1. CPU Profiler
  2. Memory Profiler
  3. Network Profiler

Frame Rendering and Jank Detection with Choreographer

  1. Understanding the Frame Pipeline
  2. Detecting Jank
  3. Reducing Jank in Compose

Memory Management: Leak Canary, Heap Analysis and Bitmap Optimization

  1. Common Memory Leak Patterns
  2. Heap Analysis in Android Studio
  3. Bitmap Optimization

Startup Time Optimization and Splash Screen API

  1. Measuring Startup Time
  2. Baseline Profiles
  3. Splash Screen API

Benchmark Library and Macro/Micro Benchmarks

  1. Macrobenchmarks: Measuring Real-World Performance
  2. Microbenchmarks: Measuring Individual Functions

Chapter Summary

Exercises

Interview Questions

Chapter 14: Accessibility and Internationalization

Accessibility Fundamentals: Content Descriptions and Touch Targets

  1. Content Descriptions
  2. Touch Target Sizes

TalkBack, Switch Access and Screen Magnification

  1. Testing with TalkBack
  2. Announcing Dynamic Content
  3. Switch Access

Dynamic Type and Scalable UI

  1. Material 3 Adaptive Typography

Internationalization: Locale, Number Formatting and Date/Time APIs

  1. String Resources with Plurals and Formatting
  2. Number and Date Formatting
  3. Per-App Language Settings (Android 13+)

Right-to-Left Layouts and Bidirectional Text

  1. RTL Support in Compose
  2. Testing RTL

Chapter Summary

Exercises

Interview Questions

Chapter 15: Testing on Android

Unit Testing with JUnit and MockK

  1. Setting Up the Test Environment
  2. Testing ViewModels
  3. Testing Repositories

Compose Testing: Semantics, Actions and Assertions

  1. Basic Compose Tests
  2. Semantics for Testing

Espresso and UI Automation

  1. Testing View-Based Screens
  2. Idling Resources for Async Operations

Continuous Integration and Cloud Testing (Firebase Test Lab)

  1. GitHub Actions CI Pipeline
  2. Firebase Test Lab

Chapter Summary

Exercises

Interview Questions

Chapter 16: Debugging, Crashes and Production Monitoring

Android Studio Debugger: Breakpoints, Stepping and Evaluate Expression

  1. Advanced Breakpoint Techniques
  2. Evaluate Expression

Logcat Mastery: Filtering, Tags and Remote Logging

  1. Structured Logging
  2. Logcat Filtering

Crash Reporting: Firebase Crashlytics and ACRA

  1. Firebase Crashlytics Setup

ANR Analysis and Main Thread Violations

  1. Understanding ANRs
  2. Detecting Main Thread Violations
  3. Android 17 New ProfilingManager Triggers for Production Debugging

Remote Configuration and Feature Flags

  1. Firebase Remote Config

Chapter Summary

Exercises

Interview Questions

Chapter 17: Publishing to the Play Store

App Signing: Upload Keys, Play App Signing and Bundletool

  1. Play App Signing
  2. Android 17 PQC APK Signing

Android App Bundles vs APKs

  1. Why App Bundles?
  2. Building an AAB

Play Console: Store Listing, Screenshots and Metadata

  1. Store Listing Optimization
  2. Content Rating and Data Safety

Release Tracks: Internal, Alpha, Beta and Production

  1. Phased Rollouts

Play Store Policies, Rating Requirements and Content Guidelines

  1. Key Policy Areas
  2. Common Rejection Reasons

Chapter Summary

Exercises

Interview Questions

Chapter 18: Migration Strategies and Backward Compatibility

API Level Targeting: minSdk, targetSdk and compileSdk

  1. The Three SDK Attributes Revisited
  2. Runtime API Checks

Deprecated APIs in Android 17 and Their Replacements

  1. Migration: Cleartext Traffic
  2. Migration: SMS OTP Reading

Build Configuration: Flavors, Dimensions and Dynamic Features

  1. Build Flavors
  2. Dynamic Feature Modules

Backward Compatibility Libraries: AndroidX and Jetpack

Migration Case Studies: From Android 12 to Android 17

  1. Case Study 1: Background Service Migration
  2. Case Study 2: Large Screen Adaptivity
  3. Case Study 3: Permission Migration

Chapter Summary

Conclusion: Building for the Future

  1. Key Takeaways
  2. What Comes Next

References

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub