Photo by Joseph Barrientos on Unsplash

Navigating in Compose is easy

Navigating in Jetpack Compose is pretty simple as you may already know. You just declare a NavHost with all your destinations and a NavHostController that will remember the navigation state and will let you controll your navigation.

For example:

We’ve just created a navController using rememberNavController() so that navigation…


Photo by Matt Hardy on Unsplash

Hi, today I come to you with a quick tip on how to update your StateFlows safely in Kotlin.

Recently a new version of Kotlin Coroutines library was released with a few new extensions functions to help you with StateFlow updates. It all started with this issue:

Let’s see what…


https://unsplash.com/

See the original article on my website:
https://patrykkosieradzki.com/livedata-vs-sharedflow-and-stateflow-in-mvvm-and-mvi-architecture/

If you’re a Polish speaker then you can listen to a podcast I created, based on this article:

Last year kotlinx.coroutines library introduced two new Flow types, SharedFlow and StateFlow, which also have their mutable types — MutableSharedFlow and MutableStateFlow.

Android…


https://www.teahub.io/

See the original article on my website:
https://patrykkosieradzki.com/android-listview-vs-recyclerview/

Scrollable list is one of the most common feature in modern mobile apps. In Android we have two popular ways to achieve this. We can use either ListView or RecyclerView. Do you know exactly how they work and which one should you…


https://www.teahub.io/

See the original article on my website:
https://patrykkosieradzki.com/easy-ui-and-screenshot-testing-on-android/

Ways of testing on Android

Every good Android application should be well tested to minimize the risk of error after releasing it to the world. The most basic tests for any application are Unit Tests. …


See the original article on my website:
https://patrykkosieradzki.com/best-git-practices-for-managing-your-project/

Having troubles managing git history in your project? You should read this.

In this article we’ll talk about best git practices for managing your project. Follow these rules to keep your project well-documented and to avoid future problems with your project’s git tree.

Creating new branches

Main branches

At the core, the development model is greatly inspired by existing…


See the original article on my website: https://patrykkosieradzki.com/hacking-the-history-git-ammend/

Forgot to do something in your last commit? Take it easy, git amend to the rescue

Today you’re gonna learn one of many ways to hack and rewrite your history in git. Git amend is great and I use it literally everyday. …

Patryk Kosieradzki

Senior Android Developer, ProAndroidDev writer, “AndroidTalks” podcast owner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store