To understand launch modes, lets first understand

What is Task?

What is back stack?

What is task-Affinity?

Task means stack of activities. Stack basically works on last in first out the concept, so the activity that is at the top of the stack ( which comes last ) will be…

There are a lot of secrets and mysteries in the world. I am sure most people have thought about it. And off cause some of them were successful in doing so—Einstein, Newton, etc. There are a lot of scientists who discovered new things. Here one can say they were exceptional…

Subjects act as an observer as well as observable. It means you can call onNext(), onComplete(), and onError() on a Subject, and it will, in turn, pass those events downstream toward its Observers.

Let’s discuss what the types of subjects are and how and where to use them.

PublishSubject:

It’s the…

Let’s create a status activity like WhatsApp using RxJava.

First of all, I will create some extension functions that I am going to use in this post later.

fun ImageView.loadImage(imageUrl:String) {
val req = Glide.with(this)
.load(imageUrl)
.into(this)
}
fun View.show() {
if (this.visibility != View.VISIBLE)
this.visibility = View.VISIBLE
}
fun…

Sometimes we need to merge two or more observable emitting the same type of items T. In RxJava, we have some operator to do so.

Let’s see how we can do that:

Observable.merge()

merge() operator can merge 2 to 4 observable sources of the same type T.

val observableSource1 : Observable<String>…

Gaurav Rajput

Working remotely as Android Developer

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