Home

Android Room

What is Room ? The Room persistence library provides an abstraction layer over SQLite. library takes care most of complicated stuff that we previously had to do ourselves, we will write much less boilerplate code to create tables and make database operations. Sqlite in android is not that cool You need to write out a boilerplate code to conv...

Read more

Android Coroutine

Summary Let me start off with basic elements of thread, concurrency before I start with coroutine. We all know that Synchronous basically means that you can only execute one thing at a time. where as Asynchronous means that you can execute multiple things at a time and you don’t have to finish executing the current thing in order to move on to...

Read more

Live Data

LiveData is an observable data holder class that is also lifecycle aware. Let’s take a look at an example. You’re going to have your UI, and then you’re also going to have this LiveData object, which holds some data that you want to show on screen. The UI observes the LiveData object. This is like saying the UI wants to be notified of updates. ...

Read more

Android ViewModel

ViewModel A ViewModel holds your app’s UI data while surviving configuration changes. Here’s why that’s actually useful. Rotating your phone is considered a configuration change. Configuration changes cause your whole activity to get torn down and then recreated. If you don’t properly save and restore data from the destroyed activity, you may ...

Read more

Android Data Binding

Summary You used the findViewById() function to get references to views. When your app has complex view hierarchies, findViewById() is expensive and slows down the app, because Android traverses the view hierarchy, starting at the root, until it finds the desired view. In this Example, you learn how to use data binding to eliminate the need for...

Read more

Android-Architecture-Component

A sample project to demonstrate Android Architecture Component libraries (Room, ViewModel, LiveData and LifeCycle) It is a Note taking app, built using the Android Architecture Component libraries (Room, ViewModel, LiveData and LifeCycle), App data will be stored in an SQLite database and supports for insert, read, update and delete operations....

Read more

Difference-between-MVC-MVP-and-MVVM

We got have one to one relationship between view and presenter, View and presenter work closely together, they need to have a reference to one another. Relationship between presenter and corresponding view is defined in a contract interface class. It present tight coupling between view and presenter . In case of this, presenter suppose to have...

Read more

SOLID Principles and Design Patterns.

SOLID Principles and Design Patterns plays a key role in achieving all of the below points. SOLID Introduction SOLID principles are the design principles that enable us to manage most of the software design problems The term SOLID is an acronym for five design principles intended to make software designs more understandable, flexible and m...

Read more