Open in app

Sign In

Write

Sign In

Vincent Tsen
Vincent Tsen

255 Followers

Home

About

Sep 16

Simplify ViewModelProvider.Factory() Implementation with Kotlin Lambda and Object Expressions

Learn how to streamline the implementation of ViewModelProvider.Factory() using Kotlin Lambdas and Object Expressions with examples. — If you are like me and still have not gotten used to the Dependency Injection framework (don’t you think it complicates things?), you probably have been implementing the ViewModelProvider.Factory() interface for your view models that has custom constructor parameters.

2 min read

Simplify ViewModelProvider.Factory() Implementation with Kotlin Lambda and Object Expressions
Simplify ViewModelProvider.Factory() Implementation with Kotlin Lambda and Object Expressions

2 min read


Aug 4

Integrate Firebase Realtime Database and User Authentication into your Android App

A Step-by-Step tutorial to integrate Firebase Realtime Database and User Authentication into your Android app with Kotlin and Jetpack Compose — This is part of the Firebase tutorial series: Part 1 — Simple Firebase Sign-in UI Demo App Part 2 — Integrate Firebase Realtime Database and User Authentication into your Android App This article is the continuity of the previous article, in which we learned how to create a simple Firebase…

Firebase

4 min read

Integrate Firebase Realtime Database and User Authentication into your Android App
Integrate Firebase Realtime Database and User Authentication into your Android App
Firebase

4 min read


Jul 8

How to Add Spotless Code Formatter to your Android Project?

Steps-by-steps guide to add spotless code formatter to your Android project for both Kotlin script (KTS) and Groovy build Gradle files — I have been seeing this spotless in many open-source codes, and it turns out it is a pretty popular coding style plugin for the Gradle build system used in Android development. So I gave it a try and use it in my project. Here are the steps I took to…

AndroidDev

3 min read

How to Add Spotless Code Formatter to your Android Project?
How to Add Spotless Code Formatter to your Android Project?
AndroidDev

3 min read


Jul 1

How to Request Android Runtime Permissions using Jetpack Compose?

A simple app example and proper way to request Android runtime permission workflow using Accompanist Permissions library for Jetpack Compose — There are 2 types of permissions: Install-time permissions Runtime permissions An example of the most common install-time permissions is internet permissions. The Android OS system automatically grants your app the permission when the app is installed. You just need to declare the permission in the AndroidManifest.xml.

AndroidDev

5 min read

How to Request Android Runtime Permissions using Jetpack Compose?
How to Request Android Runtime Permissions using Jetpack Compose?
AndroidDev

5 min read


Jun 24

@RequiresApi() and @ChecksSdkIntAtLeast() Annotations

@RequiresApi() and @ChecksSdkIntAtLeast() Annotations are used by lint tool in Android Studio to provide proper warning/error messages — One of the things I am confused about in Android development is these lint tool annotations. These annotations do not sound like lint tool annotations to me, but they are. So, I call them lint tool annotations because it makes them clear to me on their purposes which provides you…

AndroidDev

3 min read

@RequiresApi() and @ChecksSdkIntAtLeast() Annotations
@RequiresApi() and @ChecksSdkIntAtLeast() Annotations
AndroidDev

3 min read


Jun 17

Simple Preferences & Proto DataStore Demo App

Beginner’s friendly step-by-step guide to learn how to use Preferences and Proto DataStore, Room Database is not covered. — There are a few ways you can store data locally on your Android devices: SharedPreferences (replaced by Preferences DataStore) Preferences DataStore Proto DataStore Room Database SharedPreferences is the old way, which has been replaced by Preferences DataStore due to its shortcomings (e.g. …

Preferences Datastore

8 min read

Simple Preferences & Proto DataStore Demo App
Simple Preferences & Proto DataStore Demo App
Preferences Datastore

8 min read


Jun 10

Simple Firebase Sign-in UI Demo App

Simple Jetpack Compose example to demonstrate how to sign in with a Firebase Authentication pre-build UI using FirebaseUI — This is part of the Firebase tutorial series: Part 1 — Simple Firebase Sign-in UI Demo App Part 2 — Integrate Firebase Realtime Database and User Authentication into your Android App In this demo app, we will guide you through the steps to enable FirebaseUI for authentication and demonstrate how…

Firebaseauthentication

3 min read

Simple Firebase Sign-in UI Demo App
Simple Firebase Sign-in UI Demo App
Firebaseauthentication

3 min read


Jun 3

How to add Google Play In-app Review Dialog?

A step-by-step guide how you can let users review your app using Google Play In-app review API and test it out using Internal App Sharing — This is just a quick guide and a simple example of how to add the Google Play In-app review dialog in your app. This is what it looks like after I implemented this in RSS feed reader app.

AndroidDev

5 min read

How to add Google Play In-app Review Dialog?
How to add Google Play In-app Review Dialog?
AndroidDev

5 min read


May 27

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

Vincent Tsen

Vincent Tsen

255 Followers

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

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams