Book description
Developing applications for the Android mobile operating system can seem daunting, particularly if it requires learning a new programming language: Kotlin, now Androidâ??s officialdevelopment language. With this practical book, Android developers will learn how to make the transition from Java to Kotlin, including how Kotlin provides a true advantage for gaining control over asynchronous computations.
Authors Pierre-Olivier Laurence, Amanda Hinchman-Dominguez, G. Blake Meike, and Mike Dunn explore implementations of the most common tasks in native Android development, and show you how Kotlin can help you solve concurrency problems. With a focus on structured concurrency, a new asynchronous programming paradigm, this book will guide you through one of Kotlin's most powerful constructs, coroutines.
- Learn about Kotlin essentials and the Kotlin Collections Framework
- Explore Android fundamentals: the operating system and the application container and its components
- Learn about thread safety and how to handle concurrency
- Write sequential, asynchronous work at a low cost
- Examine structured concurrency with coroutines, and learn how channels make coroutines communicate
- Learn how to use flows for asynchronous data processing
- Understand performance considerations using Android profiling tools
- Use performance optimizations to trim resource consumption
Publisher resources
Table of contents
- Preface
- 1. Kotlin Essentials
- 2. The Kotlin Collections Framework
- 3. Android Fundamentals
- 4. Concurrency in Android
- 5. Thread Safety
- 6. Handling Concurrency Using Callbacks
-
7. Coroutines Concepts
- What Exactly Is a Coroutine?
- A Quick Detour About Structured Concurrency
- The Parent-Child Relationship in Structured Concurrency
- CoroutineScope and CoroutineContext
- Suspending Functions
- Suspending Functions Under the Hood
- Using Coroutines and Suspending Functions: A Practical Example
- Don’t Be Mistaken About the suspend Modifier
- Summary
- 8. Structured Concurrency with Coroutines
- 9. Channels
- 10. Flows
- 11. Performance Considerations with Android Profiling Tools
- 12. Trimming Down Resource Consumption with Performance Optimizations
- Index
- About the Authors
Product information
- Title: Programming Android with Kotlin
- Author(s):
- Release date: December 2021
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492063001
You might also like
book
Android Programming with Kotlin for Beginners
Build smart looking Kotlin apps with UI and functionality for the Android platform Key Features Start …
video
Advanced Kotlin Programming
Designed for developers who already have a basic understanding of Kotlin, this video course examines some …
book
Java to Kotlin
It takes a week to travel the 8,000 miles overland from Java to Kotlin. If you're …
video
The Art of Doing: Dive Into Android Development with Kotlin
The Art of Doing: Dive into Android development with Kotlin is a course that takes the …