Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying How to Build Android Applications with Kotlin
  • Table Of Contents Toc
  • Feedback & Rating feedback
How to Build Android Applications with Kotlin

How to Build Android Applications with Kotlin - Third Edition

By : Alex Forrester, Eran Boudjnah, Alexandru Dumbravan, Tigcal
close
close
How to Build Android Applications with Kotlin

How to Build Android Applications with Kotlin

By: Alex Forrester, Eran Boudjnah, Alexandru Dumbravan, Tigcal

Overview of this book

Written by four veteran developers with 60+ years of collective experience, this updated third edition will jumpstart your Android development journey, focusing on Kotlin libraries and Jetpack Compose, Google’s powerful declarative UI framework. You’ll learn the fundamentals of app development, enabling you to use Android Studio, as well as get to grips with Jetpack Compose to create your first screens, build apps to run them on virtual devices through guided exercises, and implement Jetpack Compose’s layout groups to make the most of lists, images, and maps. The book has been updated with Kotlin’s powerful networking and coroutines libraries to help you fetch data in the background from a web service and manage displaying the data using Kotlin flows. You’ll learn about testing, creating clean architecture, and persisting data, as well as exploring the dependency injection pattern and learning how to publish your apps on the Google Play Store. You'll also work on realistic projects split up into bite-size exercises and activities, along with building 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 gained the skills and confidence to build your own creative Android apps using Kotlin.
Table of Contents (24 chapters)
close
close
Lock Free Chapter
1
Android Foundation
6
App Components
11
Code Structure
17
Polishing and Publishing an App
22
Other Books You May Enjoy
23
Index

Using Android Studio to run tests

In this section, we will look at how we can run one or multiple tests in Android Studio. Android Studio comes with a good set of shortcuts and visual tools to help with testing. If you want to create a new test for your class or go to existing tests for your class, you can use the Ctrl + Shift + T (Windows) or Command + Shift + T (macOS) shortcut. You will need to make sure that the contents of your class are currently in focus in the editor for the keyboard shortcut to take effect

To run tests, there are two options. The first is to right-click your file or the package and select the Run Tests in ‘…’ option. The other option comes in handy if you want to run a test suite independently. You can go to the particular test method and select the green icon near the name of the class, which will execute all the tests in the class.

Figure 9.2 – Running a group of tests

Figure 9.2 – Running a group of tests

For an individual test, you can click the...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
How to Build Android Applications with Kotlin
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon