Canceling Nested Kotlin Coroutines With CoroutineScope
| | | | |

Canceling Nested Kotlin Coroutines With CoroutineScope

Coroutines are one of the 😍 nicest language features in Kotlin. They provide a rather headache-free way to use the power of concurrency in your Kotlin program. I was very excited when I started playing around with them but eventually came across a problem: what if you have nested coroutines (like a parent-child coroutine). For instance,…

Improving App Network Architecture With Retrofit And Kotlin Coroutine Call Adapter
| | | | | | |

Improving App Network Architecture With Retrofit And Kotlin Coroutine Call Adapter

Almost in every Android mobile application, we have to deal with network calls and most of the time we end up using Retrofit. No doubt Retrofit is our favorite library when it comes to networking. Kotlin and now coroutine has made Networking on Android even easier than before. I’ve recently listened to this talk by…

Debugging Realtime Database Performance with Firebase Database Profiler
| | |

Debugging Realtime Database Performance with Firebase Database Profiler

Firebase Real-time database is built to handle high data traffic apps, but if you don’t architect your data properly you can run into problems such as slow queries, high database load and most of all expensive bandwidth. So happily, the Firebase developers built us a Database Profiler (firebase profiling) which helps us to understand what’s…

Android LiveData With Example
| | | | |

Android LiveData With Example

Today I wanna tell you about a few solutions that have been developed. Solutions for problems that I think all of us as a developer have been trying to solve again and again in every project. So, let’s say that I want to perform actions in response to changes in lifecycle status of Android Component….

ViewModel – Android Architecture Component
| | | | |

ViewModel – Android Architecture Component

Couple of years ago, when I’m studying at my University. We have given the assignment to make a color changer app. The app is very basic where we have only one button and when a user clicks the button it changes its background color. So like I said, the app is very basic and I’ve made…

Android ktx with Example Part 2- ViewModel Lifecycle ktx-Work Runtime ktx
| | | | | | |

Android ktx with Example Part 2- ViewModel Lifecycle ktx-Work Runtime ktx

This is the second part of android ktx tutorial. I hope you guy has seen my previous blog in which I briefly explain about fragment ktx, palette ktx, SQLite ktx and collection ktx extension functions. So in this blog, I’m gonna explain how we can use the extension function exists in ViewModel ktx and work-runtime…

Android ktx with example – Fragment | Palette | Collection | SQLite
| | | | | | | | |

Android ktx with example – Fragment | Palette | Collection | SQLite

If you’re developing an Android application with Kotlin, then I have good news for you. Recently Google released an Android ktx library, which is a set of Kotlin Extension function. Android ktx is a part of Jetpack family. The purpose of Android ktx is to write less code and more concise. Android ktx brings us…

AutoSize TextView Android
| | |

AutoSize TextView Android

Finally, Android O support library got this feature covered. Material design recommends using a dynamic type instead of smaller type sizes or truncating larger size text. A TextView that automatically resize the text, expand and fill its layout based on the text view characteristics and boundaries. These characteristics make it easier to optimize the text size…

Android Paging Library With Example
| | | | |

Android Paging Library With Example

Hello, guys today we’re gonna look out a new Android Architecture Component library called Paging. In this blog, I try to explain the different components of the library and tell how they interact. Paging library makes it easier to load data gradually and gracefully in your app. The paging library supports both large bounded list…