Chapter 2

Building a Foundation for Your App


check Working with the Kotlin Extensions (KTX)

check Developing apps that perform well

check Performing app testing

Creating a good foundation for your app depends on knowledge of what the API and various tools can do for you. For example, extension functions and extension properties help you add features to existing classes. The idea is that you don’t want to spend a lot of time writing the code that someone else has already written. With this in mind, you need to consider what Android KTX is all about because it’s your main tool in developing a good app using Kotlin. The first part of this chapter provides you with a great overview of Android KTX.

As you start building your app with Android KTX, you also want to be sure that the app is secure and that it runs fast. The two issues go hand in hand because users won’t work with apps that run slow, but they won’t thank you if your app releases all their personal information, either. You must have a balance between security and speed. The second part of this chapter provides best-practice approaches to including security in your apps, while the third part of this chapter shows how to perform ...

Get Android Application Development All-in-One For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.