Site is under maintenance mode. Please wait few min!

What is Context on Android?

It’s an abstract class whose implementation is provided by the Android system. Context allows access to application-specific resources and classes, as well as calls for application-level operations such as launching activities, broadcasting and receiving intents, etc. Context is a handle to the system, it provides services like resolving resources, obtaining access to databases and preferences, Read more…

Background operation using RxJava Android

Background operation using RxJava Android What is Background operation? Background processing in Android refers to the execution of tasks in different threads than the Main Thread, also known as UI Thread, where views are inflated and where the user interacts with our app. Why background operation? To avoid UI blockages Read more…

How to create custom operator in RxJava?

How to create custom operator in RxJava?   Adding RxJava 2 library  to a Java project in Android Studio To use RxJava in a Gradle build, add the following as dependency. compile group: ‘io.reactivex.rxjava2’, name: ‘rxjava’, version: ‘2.1.1’ For Maven, you can add RxJava via the following snippet. io.reactivex.rxjava2 rxjava Read more…

flatMap in RxJava basic introduction for Beginners

flatMap in RxJava basic introduction for Beginners Observable.flatMap() takes the emissions of one Observable and returns the emissions of another Observable to take its place. Here’s how it works:   query(“Hello, world!”) .flatMap(new Func1() { @Override public Observable call(List urls) { return Observable.from(urls); } }) .subscribe(url -> System.out.println(url)); I’m showing Read more…

Schedulers in Rxjava android tutorial

Schedulers in Rxjava android tutorial   If you want to introduce multithreading into your cascade of Observable operators, you can do so by instructing those operators (or particular Observables) to operate on particular Schedulers. Check Prevoius Posts Rxjava Introduction Reactive Hello world application in android Transformation using RxJava tutorial for beginners Introducing Read more…

Timer using Rxjava in android Interval operator

Timer using Rxjava in android Interval operator Checkout the previous posts Rxjava Introduction Reactive Hello world application in android Transformation using RxJava tutorial for beginners Introducing Operators in RxJava tutorial for beginners   Interval create an Observable that emits a sequence of integers spaced by a given time interval The Interval operator returns an Read more…

Social Media Auto Publish Powered By : XYZScripts.com