Introduction At PL Coding, we frequently get asked about the best way to handle state in ViewModels. Why is this such a common question? State management is a crucial part of Android, and I believe it is because so many options are available that developers get...
Credential Manager
What Is Credential Manager? Credential Manager is a Jetpack Compose API that isolates the intergration for credential management of our user’s into a single API and supports multiple sign-in options. These options include: Passkeys. Put simply, they are session tokens...
Predictive Back Support
What Is Predictive Back Gesture? Predictive Back Gesture refers to a preview that the device shows the user when they perform a back swipe gesture. As the user swipes on the screen, a preview of where this gesture will take them is shown. This animated preview allows...
Using popBackStack()? Then Your App Likely Has a Bug.
Compose Navigation - The Basics Your app maintains what is called a back stack. A back stack is simply a stack of screens (navigation destinations) placed on each other (like a stack of pancakes). The deeper the user navigates into your app, going from screen A to...
Custom Splash Screen on Android – Why You’re Doing It Wrong
First, what even is a splash screen? It’s a screen that commonly displays some form of app branding, usually in the form of a logo, slogan, or the brand’s colors. The splash screen tends not to be very complicated because you want it to load fast. After all, the...
Top 5 Practices for More Scalable Android Architecture
When it comes to Android architecture, there are a few best practices you can't do anything wrong with. What does it even mean for your architecture to be more scalable? Think about creating insurance for the application you are working on to handle feature growth and...
How to Implement Official Type-Safe Navigation With Jetpack Compose & Custom Types
The declarative UI code that Jetpack Compose has introduced has been a fantastic development. Creating and reviewing UI code has never been easier! With all the positives it came with, there was one area where I felt that Jetpack Compose...
Why a Dumb Android UI Leads to a More Performant And Overall Safer Codebase
Whether you use XML or Jetpack Compose for your Android UI, having a clear line between where the responsibilities of your UI end is something you’ll be thankful you did. A common pitfall many developers encounter is the temptation to include UI logic directly within...