Book Image

Modern Android 13 Development Cookbook

By : Madona S. Wambua
5 (1)
Book Image

Modern Android 13 Development Cookbook

5 (1)
By: Madona S. Wambua

Overview of this book

Android is a powerful operating system widely used in various devices, phones, TVs, wearables, automobiles, and more. This Android cookbook will teach you how to leverage the latest Android development technologies for creating incredible applications while making effective use of popular Jetpack libraries. You’ll also learn which critical principles to consider when developing Android apps. The book begins with recipes to get you started with the declarative UI framework, Jetpack Compose, and help you with handling UI states, Navigation, Hilt, Room, Wear OS, and more as you learn what's new in modern Android development. Subsequent chapters will focus on developing apps for large screens, leveraging Jetpack’s WorkManager, managing graphic user interface alerts, and tips and tricks within Android studio. Throughout the book, you'll also see testing being implemented for enhancing Android development, and gain insights into harnessing the integrated development environment of Android studio. Finally, you’ll discover best practices for robust modern app development. By the end of this book, you’ll be able to build an Android application using the Kotlin programming language and the newest modern Android development technologies, resulting in highly efficient applications.
Table of Contents (15 chapters)

Implementing Cards in Wear OS (TitleCard and AppCard)

When building for Wear OS, we have two significant cards that we need to consider: AppCard and TitleCard. A good use case for cards would be Notification and Smart Reply. If you use a wearable device, you might know what these are; if you don’t use a wearable device, you can look them up, but in this recipe, we will also explore examples.

Furthermore, if you create a Notification card, you intend to provide a quick and easy way to view and respond to notifications from your apps. When a notification arrives, it appears as a card on your watch face, which you can then swipe away or tap to open and interact with the notification.

As for Smart Reply cards, this feature uses machine learning to suggest responses to messages you receive based on the context of the message. These cards appear as a response option to notifications and allow you to quickly send a message without needing to type it out manually.

Both Notification...