Book description
Write More Robust and Maintainable Android Apps with Kotlin
“Peter Sommerhoff takes a practical approach to teaching Kotlin by providing a larger set of code listings that demonstrate language features and by guiding readers through the development of two Android apps step by step. . . . Peter finds a good balance between what is essential and what can be left to readers, so this book is an efficient yet comprehensible source for starting programming with Kotlin.”
–;Bernhard Rumpe, Professor of Software Engineering, RWTH Aachen University
The Kotlin language brings state-of-the-art programming techniques and constructs to Android development. Kotlin for Android App Development will help you rapidly understand Kotlin's principles and techniques, apply Kotlin in production app development, integrate Kotlin with existing Java code, and plan a migration to Kotlin, if you choose.
If you have at least basic programming experience (with any language), Peter Sommerhoff's well-crafted overview and examples will help you get quickly up-to-speed with the Kotlin language, its constructs, and its advanced functional and object-oriented capabilities.
Once you've mastered these foundations, Sommerhoff walks you through two complete app development projects, introducing best practices and emerging patterns for writing code that's robust, concise, readable, and highly performant.
- Understand Kotlin's goals, principles, advantages, design, and constructs
- Take full advantage of functional programming in the Kotlin environment
- Write more concise and reusable code using Kotlin's object-oriented features
- Interoperate with existing Java code, and plan a migration to Kotlin
- Use coroutines to efficiently handle concurrency
- Capture data via third-party APIs, map it to internal data representations, and present it to users
- Master best practices for architecting Kotlin Android apps
- Improve productivity and readability by creating simple domain-specific languages in Kotlin
Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.
Table of contents
- Cover Page
- About This E-Book
- Title Page
- Copyright Page
- Contents
- Listings
- Foreword
- Preface
- Acknowledgments
- About the Author
- I Learning Kotlin
-
II Kotlin on Android
- 7 Android App Development with Kotlin: Kudoo App
-
8 Android App Development with Kotlin: Nutrilicious
- Setting Up the Project
- Adding a RecyclerView to the Home Screen
- Fetching Data from the USDA Nutrition API
- Mapping JSON Data to Domain Classes
- Introducing a ViewModel for Search
- Letting Users Search Foods
- Introducing Fragments I: The Search Fragment
- Introducing Fragments II: The Favorites Fragment
- Store User’s Favorite Foods in a Room Database
- Fetching Detailed Nutrition Data from the USDA Food Reports API
- Integrating the Details Activity
- Storing Food Details in the Database
- Adding RDIs for Actionable Data
- Improving the User Experience
- Summary
- 9 Kotlin DSLs
- 10 Migrating to Kotlin
- A Further Resources
- Credits
- Glossary
- Index
Product information
- Title: Kotlin for Android App Development
- Author(s):
- Release date: December 2018
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780134854281
You might also like
book
Learn Kotlin for Android Development: The Next Generation Language for Modern Android Apps Programming
Build Android apps and learn the essentials of the popular Kotlin programming language and APIs. This …
book
How to Build Android Apps with Kotlin
Master the fundamentals of Android programming and apply your skills to create scalable and reliable apps …
book
Efficient Android Threading
Multithreading is essential if you want to create an Android app with a great user experience, …
video
Kotlin From the Ground Up LiveLessons Video Training
4+ Hours of Video Instruction Google officially announced Kotlin as a first-class language for Android development, …