I ran into the issue of a ViewModel not maintaining the apps UI state when I first started working with ViewModels and it was due to a something that I simply overlooked at the time. So if you are just starting out and running into the same issue maybe this post will help you out. […]
Continue ReadingClear Focus in Material 3 Composables – Jetpack Compose
As I continue my exploration into Jetpack Compose I ran into an interesting problem. After tapping on a TextField and filling out the contents, the cursor continued to blink. It didn’t matter if I taped outside of the field or closed the virtual keyboard, the cursor just continued to blink. Which is interesting, because I […]
Continue ReadingHow To Add A Jetpack Compose Button
Adding a Simple Button Adding a simple button with just some text. Sometimes you just want a button. The Column composable is not required. I added it because I’m testing out several different buttons and I want them all lined up down the center of the screen. To add a button to your app use […]
Continue ReadingSetting Up A Simple Android Fragments Project With Navigation
A quick and simple sample project that will demonstrate how to setup Android fragments and navigate between them. Will walk through initial project setup, necessary dependencies, setup of 3 different fragments with navigation between them using jetpack and Androidx. Initial Project Setup In Android Studio create a new project with just an empty activity. Let […]
Continue ReadingAndroid Project to API Level 30
How to update an Android Studio Project target API level.
Continue ReadingPassing Data From DialogFragment To Calling Activity
How to get data from your Dialog to you calling Activity in Android.
Continue ReadingPassing An Object To New Activity in Android
So if you are like me, you prefer to transfer data around in you application using a simple objects that really only contain public or private fields and/or their getters and setters. For lack of a better term I’m going to call these object Data Transfer Objects (DTO) even thought we are not technically passing […]
Continue Reading