Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
How to Build Android Apps with Kotlin
How to Build Android Apps with Kotlin

How to Build Android Apps with Kotlin: A practical guide to developing, testing, and publishing your first Android apps , Second Edition

Arrow left icon
Profile Icon Alex Forrester Profile Icon Eran Boudjnah Profile Icon Alexandru Dumbravan Profile Icon Tigcal
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4 (14 Ratings)
Paperback May 2023 704 pages 2nd Edition
eBook
$74.99 $83.99
Paperback
$103.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Alex Forrester Profile Icon Eran Boudjnah Profile Icon Alexandru Dumbravan Profile Icon Tigcal
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4 (14 Ratings)
Paperback May 2023 704 pages 2nd Edition
eBook
$74.99 $83.99
Paperback
$103.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$74.99 $83.99
Paperback
$103.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

How to Build Android Apps with Kotlin

Creating Your First App

This chapter is an introduction to Android, where you will set up your environment and focus on the fundamentals of Android development. By the end of this chapter, you will have gained the knowledge required to create an Android app from scratch and install it on a virtual or physical Android device.

You will be able to analyze and understand the importance of the AndroidManifest.xml file and use the Gradle build tool to configure your app and implement user interface (UI) elements from Material Design.

Android is the most widely used mobile phone operating system in the world, with over three billion active devices. This presents great opportunities to contribute and make an impact by learning Android and building apps that have a global reach. However, for a developer who is new to Android, there are many issues you must contend with in order to get started learning and becoming productive.

This book will address these issues. After learning the tooling and development environment, you will explore fundamental practices to build Android apps. We will cover a wide range of real-world development challenges faced by developers and explore various techniques to overcome them.

In this chapter, you will learn how to create a basic Android project and add features to it. You will be introduced to the comprehensive development environment of Android Studio and learn about the core areas of the software to enable you to work productively.

Android Studio provides all the tooling for application development but not the knowledge. This first chapter will guide you through using the software effectively to build an app and configure the most common areas of an Android project.

We will cover the following topics in the chapter:

  • Creating an Android project with Android Studio
  • Setting up a virtual device and running your app
  • The Android Manifest
  • Using Gradle to build, configure, and manage app dependencies
  • Android application structure

Technical requirements

The complete code for all the exercises and the activity in this chapter is available on GitHub at https://packt.link/96l1D

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Build apps with Kotlin, Google’s preferred programming language for Android development
  • Unlock solutions to development challenges with guidance from experienced Android professionals
  • Improve your apps by adding valuable features that make use of advanced functionality

Description

Looking to kick-start your app development journey with Android 13, but don’t know where to start? How to Build Android Apps with Kotlin is a comprehensive guide that will help jump-start your Android development practice. This book starts with the fundamentals of app development, enabling you to utilize Android Studio and Kotlin to get started with building Android projects. You'll learn how to create apps and run them on virtual devices through guided exercises. Progressing through the chapters, you'll delve into Android's RecyclerView to make the most of lists, images, and maps, and see how to fetch data from a web service. You'll also get to grips with testing, learning how to keep your architecture clean, understanding how to persist data, and gaining basic knowledge of the dependency injection pattern. Finally, you'll see how to publish your apps on the Google Play store. You'll work on realistic projects that are split up into bitesize exercises and activities, allowing you to challenge yourself in an enjoyable and attainable way. You'll build apps to create quizzes, read news articles, check weather reports, store recipes, retrieve movie information, and remind you where you parked your car. By the end of this book, you'll have the skills and confidence to build your own creative Android applications using Kotlin.

Who is this book for?

If you want to build Android applications using Kotlin but are unsure of how and where to begin, then this book is for you. To easily grasp the concepts in this book, a basic understanding of Kotlin, or experience in a similar programming language is a must.

What you will learn

  • Create maintainable and scalable apps using Kotlin
  • Understand the Android app development lifecycle
  • Simplify app development with Google architecture components
  • Use standard libraries for dependency injection and data parsing
  • Apply the repository pattern to retrieve data from outside sources
  • Build user interfaces using Jetpack Compose
  • Explore Android asynchronous programming with Coroutines and the Flow API
  • Publish your app on the Google Play store

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 02, 2023
Length: 704 pages
Edition : 2nd
Language : English
ISBN-13 : 9781837634934
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : May 02, 2023
Length: 704 pages
Edition : 2nd
Language : English
ISBN-13 : 9781837634934
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 190.97
How to Build Android Apps with Kotlin
$103.99
Android UI Development with Jetpack Compose
$36.99
Modern Android 13 Development Cookbook
$49.99
Total $ 190.97 Stars icon

Table of Contents

23 Chapters
Part 1: Android Foundation Chevron down icon Chevron up icon
Chapter 1: Creating Your First App Chevron down icon Chevron up icon
Chapter 2: Building User Screen Flows Chevron down icon Chevron up icon
Chapter 3: Developing the UI with Fragments Chevron down icon Chevron up icon
Chapter 4: Building App Navigation Chevron down icon Chevron up icon
Part 2: Displaying Network Calls Chevron down icon Chevron up icon
Chapter 5: Essential Libraries: Retrofit, Moshi, and Glide Chevron down icon Chevron up icon
Chapter 6: Adding and Interacting with RecyclerView Chevron down icon Chevron up icon
Chapter 7: Android Permissions and Google Maps Chevron down icon Chevron up icon
Chapter 8: Services, WorkManager, and Notifications Chevron down icon Chevron up icon
Chapter 9: Building User Interfaces Using Jetpack Compose Chevron down icon Chevron up icon
Part 3: Testing and Code Structure Chevron down icon Chevron up icon
Chapter 10: Unit Tests and Integration Tests with JUnit, Mockito, and Espresso Chevron down icon Chevron up icon
Chapter 11: Android Architecture Components Chevron down icon Chevron up icon
Chapter 12: Persisting Data Chevron down icon Chevron up icon
Chapter 13: Dependency Injection with Dagger, Hilt, and Koin Chevron down icon Chevron up icon
Part 4: Polishing and Publishing an App Chevron down icon Chevron up icon
Chapter 14: Coroutines and Flow Chevron down icon Chevron up icon
Chapter 15: Architecture Patterns Chevron down icon Chevron up icon
Chapter 16: Animations and Transitions with CoordinatorLayout and MotionLayout Chevron down icon Chevron up icon
Chapter 17: Launching Your App on Google Play Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4
(14 Ratings)
5 star 71.4%
4 star 14.3%
3 star 7.1%
2 star 0%
1 star 7.1%
Filter icon Filter
Top Reviews

Filter reviews by




Oleksii Aug 05, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'd say that the book is a great choice for somebody who already read Head First and then decided that he needs to understand what the hell was going on in the book. "How to Build Android Apps with Kotlin - Second Edition" gives you a practical approach and real knowledge. I didn't like packt publishing until I started to read this book. Thanks.
Subscriber review Packt
Johnjeremih May 23, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I really like the value that this book includes. I loved that it is well-updated and also introduces old navigation methods and then showed you the new ones. I also found it great that this book has the new methods when requesting permissions. It also has compose with it is great and testing. The value of the book is greater than the cost.
Amazon Verified review Amazon
Leke May 12, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"How to Build Android Apps with Kotlin" is a must-have for any aspiring Android developers. It covers everything from setting up your development environment to publishing your app to the Google Play Store. The book's practical approach and emphasis on testing and quality assurance will help you create high-quality apps that users will love.
Amazon Verified review Amazon
micgroo Dec 18, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Love it. Fast shipping, high quality.Book is like brand new
Amazon Verified review Amazon
Andres S. Maitre Jul 26, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I recently finished reading this book that I found to be extremely helpful and relevant to my needs. One of the standout features of the book is its up-to-date content. It covers the latest libraries, packages, and industry best practices, ensuring that the information provided is current and applicable to modern Android development.What made this book particularly valuable to me was the timing of my reading. I was simultaneously developing my own Android app, and the book served as an excellent companion throughout the process.One aspect of the book that I appreciated was its attention to detail. The authors left no loose ends, ensuring that all concepts were thoroughly explained and examples were provided. This attention to detail made the learning experience more comprehensive and enriched my understanding of Android development.Another strength of the book is its coverage of different paradigms and architecture patterns. It not only explains these concepts but also provides guidance on how to choose the most suitable approach for specific use cases.One chapter that stood out to me was the "Launching Your App on Google Play" chapter. This chapter provided step-by-step guidance on how to successfully release an app on Google Play. As someone who was preparing to release my own app, this chapter was invaluable. It guided me through the entire process, from setting up a developer account (what in my case I already had) to optimizing the app listing. Thanks to the contribution of this book, the process of publishing my app became much easier for me. I was able to successfully release my app, a Card Game called Lofkuden, on Google Play.Overall, I highly recommend this Android development book. Its up-to-date content, relevance to real-world development, attention to detail, coverage of different paradigms, and practical guidance for app release make it a valuable resource for both beginner and experienced Android developers.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.