Boost Compatibility: When to Use or Skip New Java and Kotlin Versions in Android Development This image was generated with the assistance of AI Ever wondered when you can or cannot use the latest Java and Kotlin versions in Android development? In this article I will try to give you the answer. As Android developers, […]
Using Android 15 new ApplicationStartInfo Android 11 introduced ApplicationExitInfo, from which you can get historical reasons why the app was turned off / killed. Android 15 implemented new ApplicationStartInfo can be used to analyze the causes of why and how the app was launched. With both kinds of data, you can track how the users […]
In this article, you’ll learn how to use string resources inside ViewModel or any place you want, no matter what the source of the string is! We want to treat all strings in Android as equals, whether they’re from strings.xml , backend or user-created content. You’ll need an abstraction representing all of these values to […]
In a few recent projects, I’ve needed to utilise Google Maps within environments utilising Jetpack Compose. In the early days of Compose this felt light a sought-after piece of functionality – even though it is still being built on, it now seems to be in a place where I can confidently use it. In this […]
Photo by Clark Tibbs on Unsplash Business logic has a much bigger connotation than what is perceived. Generally, people limit themselves to a single screen. Developers choose one of the MV(x) design patterns, believing that this selection ensures the successful implementation of KMM. However, this assumption does not hold because of the platforms’ framework design […]
12 min read · Aug 27, 2024 The article aims to show how to handle parameters of compose functions and use @PreviewParameter in Jetpack Compose UI. For any concerns about the article, contact me here. 🤝 The image has been created by Caner Kaşeler. I create a basic Android application with only Jetpack Compose in […]
In a recent blog post I took a look at the new Compose Preview Screenshot Testing Tool, provided by Google as a way to enable developers to easily write screenshot tests for their composable UI. When it comes to screenshot testing, writing these tests only represents one part of the process – we also need […]
As we migrate our apps to Jetpack Compose, we need to ensure that all existing functionality remains intact. This means that not only the way our UI looks, but the way that it behaves when users interact with it. When recently migrating part of an app to Jetpack Compose, I experienced a broken coordinator layout […]
At Google I/O 2024, one of the announcements that caught my eye was support for Compose Preview Screenshot Testing using the Compose Preview Screenshot Testing tool. Even though this is still in an experimental state, I couldn’t wait to dive in and have a play with this! My new book, CI/CD for Android using GitHub […]
As of Compose Foundation 1.7.0-alpha07, the ClickableText composable has been marked as deprecated, with plans for it to be removed come 1.8.0. ClickableText is often used to handle URLs within text – while the composable handles the click event, we are still required to manually provide styling attributes via annotated strings. To replace ClickableText, we […]