Open in app

Sign In

Write

Sign In

Vincent Tsen
Vincent Tsen

238 Followers

Home

About

1 day ago

How to Add Deep Links in Jetpack Compose?

Step-by-step and easy-to-follow guide to implement deep links in your Android app using Navigation Compose library — This is part of the Jetpack Compose navigation series: Part 1 — Simple Jetpack Compose Navigation Example Part 2 — Compose Destinations — Navigation Library Part 3 — How to Add Bottom Navigation in Jetpack Compose? Part 4 — How to Add Navigation Drawer in Jetpack Compose? Part 5 —…

Deep Links Android

6 min read

How to Add Deep Links in Jetpack Compose?
How to Add Deep Links in Jetpack Compose?
Deep Links Android

6 min read


May 20

Kotlin Flow — Combine, Merge and Zip

Exploring the Power of Kotlin Flow: Combining, Merging, and Zipping Streams — This is part of the asynchronous flow series: Part 1 — Exploring Android LiveData Usages and Behaviors Part 2 — Introduction to Kotlin Flows and Channels Part 3 — Exploring Different Ways to Collect Kotlin Flow Part 4 — Convert Flow to SharedFlow and StateFlow Part 5 — Flow, SharedFlow…

Kotlin Beginners

3 min read

Kotlin Flow — Combine, Merge and Zip
Kotlin Flow — Combine, Merge and Zip
Kotlin Beginners

3 min read


May 13

Flow, SharedFlow, StateFlow Class Diagram

Kotlin Flow, SharedFlow, MutableSharedFlow, StateFlow, MutableStateFlow and FlowCollector class diagram — This is part of the asynchronous flow series: Part 1 — Exploring Android LiveData Usages and Behaviors Part 2 — Introduction to Kotlin Flows and Channels Part 3 — Exploring Different Ways to Collect Kotlin Flow Part 4 — Convert Flow to SharedFlow and StateFlow Part 5 — Flow, SharedFlow…

AndroidDev

2 min read

Flow, SharedFlow, StateFlow Class Diagram
Flow, SharedFlow, StateFlow Class Diagram
AndroidDev

2 min read


May 6

Pass by Value vs CompositionLocal vs Static CompositionLocal

Examples to show how to pass data to composable functions using function parameters(i.e. pass by value), CompositionLocal and static CompositionLocal — There are a few ways you can pass data to a composable function: Pass by Value (function parameter) CompositionLocal Static CompositionLocal Pass by Value is a conventional way. CompositionLocal and static CompositionLocal is a Jetpack Compose way, but static CompositionLocal is useless in my opinion (will be explained later).

Jetpack Compose

4 min read

Pass by Value vs CompositionLocal vs Static CompositionLocal
Pass by Value vs CompositionLocal vs Static CompositionLocal
Jetpack Compose

4 min read


Apr 29

Android Context 101 with Class Diagram

Beginner’s Guide to understand the fundamental of Context with class diagram in Android app development — You may find Context in Android app development is confusing. For example, which one you should use? Before answering that, let’s look at the Context class diagram below to understand its relationship with other classes/components. Context Class Diagram

AndroidDev

4 min read

Android Context 101 with Class Diagram
Android Context 101 with Class Diagram
AndroidDev

4 min read


Apr 22

Beginner’s Guide to Understand Build Gradle Files in Android Studio

An overview of build Gradle files (settings.gradle/.kts, build.gradle/.kts, and gradle.properties) used in Android Studio for beginners — Build Gradle is a build tool used in Android Studio to build your Android app. It can be written either in Groovy script, or Kotlin script (KTS). KTS is newer than Groovy and eventually, it will replace Groovy. High-level functions of Build Gradle Reads app’s build configurations/script s (settings.gradle / settings.gradle.kts and build.gradle / build.gradle.kts)

Gradle Plugin

7 min read

Beginner’s Guide to Understand Build Gradle Files in Android Studio
Beginner’s Guide to Understand Build Gradle Files in Android Studio
Gradle Plugin

7 min read


Apr 15

Android vs Desktop App Kotlin Compilation Process

Android and Desktop app Kotlin compilation process comparisons — Java Virtual machine(JVM), Dalvik Virtual Machine(DVM) and Android Runtime(ART) — Have you ever wondered what happens when you compile your Kotlin source code? The Kotlin Compiler doesn’t convert your code to machine code directly, but it converts your code to bytecode instead. Then, the Kotlin Interpreter/Virtual Machine converts the bytecode to machine code during run-time/installation time.

AndroidDev

2 min read

Android vs Desktop App Kotlin Compilation Process
Android vs Desktop App Kotlin Compilation Process
AndroidDev

2 min read


Apr 8

Kotlin Infix Notation is Confusing

If you see a method call that have space between, it is likely a Kotlin infix notation. — Whenever I read Kotlin code that has infix notation, it always confuses me. Maybe I should say I still haven’t gotten used to it? Honestly, it is just sugar syntax in my opinion. For example: val result = 2 plus 3 is the same as val result = 2.plus(3) 2…

Kotlin Beginners

2 min read

Kotlin Infix Notation is Confusing
Kotlin Infix Notation is Confusing
Kotlin Beginners

2 min read


Mar 31

How to Implement Custom Fonts using Downloadable Google Fonts?

A step-by-step guide to implementing custom font by downloading (instead of manually copying) Google fonts and using them in your Jetpack Compose app. — Roboto is the default font used by Material 3. However, we often want to change it for our app. Instead of manually copying the font asset, you can now download the Google font asynchronously and use them in your Jetpack Compose app. This is a quick guide to changing the…

Andoid App Development

2 min read

How to Implement Custom Fonts using Downloadable Google Fonts?
How to Implement Custom Fonts using Downloadable Google Fonts?
Andoid App Development

2 min read


Mar 24

What is Kotlin Reified Type Parameter?

Simple example to understand reified type parameters in Kotlin — One of the most common uses of this reified type parameter is view model creation. For example, the following code is the viewModels() composable helper function to create the view model. @Composable public inline fun <reified VM : ViewModel> viewModel( viewModelStoreOwner: ViewModelStoreOwner…

Kotlin

2 min read

What is Kotlin Reified Type Parameter?
What is Kotlin Reified Type Parameter?
Kotlin

2 min read

Vincent Tsen

Vincent Tsen

238 Followers

Native Android Kotlin Developer | https://vtsen.hashnode.dev/

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech