All Projects → amitshekhariitbhu → Rxjava2 Android Samples

amitshekhariitbhu / Rxjava2 Android Samples

Licence: apache-2.0
RxJava 2 Android Examples - Migration From RxJava 1 to RxJava 2 - How to use RxJava 2 in Android

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Rxjava2 Android Samples

db2-samples
Db2 application code, configuration samples, and other examples
Stars: ✭ 56 (-98.87%)
Mutual labels:  sample, examples, example, samples
Android Clean Architecture Mvvm Dagger Rx
Implemented by Clean Architecture, Dagger2, MVVM, LiveData, RX, Retrofit2, Room, Anko
Stars: ✭ 138 (-97.21%)
Mutual labels:  rxjava, rxandroid, example, sample
Haxejs
Documentation about using JavaScript with Haxe
Stars: ✭ 25 (-99.49%)
Mutual labels:  tutorial, example, examples, tutorials
Rxbluetooth
Android reactive bluetooth
Stars: ✭ 405 (-91.82%)
Mutual labels:  rxjava, rxjava2, rxandroid
Rxjava3 Android Examples
RxJava 3 Android Examples - Migration From RxJava 2 to RxJava 3 - How to use RxJava 3 in Android
Stars: ✭ 213 (-95.7%)
Mutual labels:  rxjava, rxjava2, examples
Reactivenetwork
Android library listening network connection state and Internet connectivity with RxJava Observables
Stars: ✭ 2,484 (-49.82%)
Mutual labels:  rxjava, rxjava2, rxandroid
Llvm 9.0 Learner Tutorial
A blog for LLVM(v9.0.0 or v11.0.0) beginner, step by step, with detailed documents and comments. Record the way I learn LLVM and accomplish a complete project for FPGA High-Level Synthesis with it.
Stars: ✭ 58 (-98.83%)
Mutual labels:  samples, tutorial, sample
Examples wxWidgets
Shows how to use wxWidgets controls only by programming code (c++17).
Stars: ✭ 116 (-97.66%)
Mutual labels:  sample, examples, samples
ReactiveBus
🚍 Reactive Event Bus for JVM (1.7+) and Android apps built with RxJava 2
Stars: ✭ 17 (-99.66%)
Mutual labels:  rxjava, rxandroid, rxjava2
Rxbiometric
☝️ RxJava and RxKotlin bindings for Biometric Prompt (Fingerprint Scanner) on Android
Stars: ✭ 295 (-94.04%)
Mutual labels:  rxjava, rxjava2, rxandroid
Examples
Many examples of Raku code
Stars: ✭ 276 (-94.42%)
Mutual labels:  samples, example, examples
Swipe
👉 detects swipe events on Android
Stars: ✭ 324 (-93.45%)
Mutual labels:  rxjava, rxjava2, rxandroid
Reactivewifi
Android library listening available WiFi Access Points and related information with RxJava Observables
Stars: ✭ 186 (-96.24%)
Mutual labels:  rxjava, rxjava2, rxandroid
Androidbasemvp
🚀一个快速搭建MVP+RxJava2+Retrofit 基础框架,主要是封装有Http网络请求、日志、缓存、加载等待、toast、页面状态布局管理、权限、RxBus、Glide图片加载等组件,方便快速开发新项目、减少开发成本。
Stars: ✭ 184 (-96.28%)
Mutual labels:  rxjava, rxjava2, rxandroid
Prefser
Wrapper for Android SharedPreferences with object serialization and RxJava Observables
Stars: ✭ 228 (-95.39%)
Mutual labels:  rxjava, rxjava2, rxandroid
Rxbus
Event Bus By RxJava.
Stars: ✭ 2,126 (-57.05%)
Mutual labels:  rxjava, rxjava2, rxandroid
Mvvm Architecture Android Beginners
This repository contains a sample app that implements MVVM architecture using Kotlin, ViewModel, LiveData, and etc.
Stars: ✭ 176 (-96.44%)
Mutual labels:  rxjava, rxjava2, rxandroid
Rxbus
🚌 The RxBus as steady as an old dog.
Stars: ✭ 334 (-93.25%)
Mutual labels:  rxjava, rxjava2, rxandroid
Reactivesensors
Android library monitoring device hardware sensors with RxJava
Stars: ✭ 161 (-96.75%)
Mutual labels:  rxjava, rxjava2, rxandroid
Reactivebeacons
Android library scanning BLE beacons nearby with RxJava
Stars: ✭ 171 (-96.55%)
Mutual labels:  rxjava, rxjava2, rxandroid

Learning RxJava 2 for Android by example

Mindorks Mindorks Community Mindorks Android Store Open Source Love License

Take the MindOrks Android Online Course and Learn RxJava

How to use RxJava 2 in Android Application

How to migrate from RxJava 1.0 to RxJava 2.0

How to use RxJava 3 in Android Application Check here

Kotlin-Coroutines-Android-Examples - Check here

This project is for :

  • who is migrating to RxJava 2
  • or just started with RxJava.

Just Build the project and start learning RxJava by examples.

RxJava 2.0 has been completely rewritten from scratch on top of the Reactive-Streams specification. The specification itself has evolved out of RxJava 1.x and provides a common baseline for reactive systems and libraries.

Because Reactive-Streams has a different architecture, it mandates changes to some well known RxJava types.

Migration From RxJava 1.0 to RxJava 2.0

To allow having RxJava 1 and RxJava 2 side-by-side, RxJava 2 is under the maven coordinates io.reactivex.rxjava2:rxjava:2.x.y and classes are accessible below io.reactivex.

Users switching from 1.x to 2.x have to re-organize their imports, but carefully.

Using RxJava 2.0 Library in your application

Add this in your build.gradle

compile 'io.reactivex.rxjava2:rxjava:2.2.2'

If you are using RxAndroid also, then add the following

compile 'io.reactivex.rxjava2:rxandroid:2.1.0'

RxJava 2 Examples present in this sample project

  • RxJava 2.0 Example using CompositeDisposable as CompositeSubscription and Subscription have been removed.

  • RxJava 2 Example using Flowable.

  • RxJava 2 Example using SingleObserver, CompletableObserver.

  • RxJava 2 Example using RxJava2 operators such as map, zip, take, reduce, flatMap, filter, buffer, skip, merge, concat, replay, and much more:

  • RxJava 2 Android Samples using Function as Func1 has been removed.

  • RxJava 2 Android Samples using BiFunction as Func2 has been removed.

  • And many others android examples

Quick Look on few changes done in RxJava2 over RxJava1

RxJava1 -> RxJava2

  • onCompleted -> onComplete - without the trailing d
  • Func1 -> Function
  • Func2 -> BiFunction
  • CompositeSubscription -> CompositeDisposable
  • limit operator has been removed - Use take in RxJava2
  • and much more.

Operators :

  • Map -> transform the items emitted by an Observable by applying a function to each item
  • Zip -> combine the emissions of multiple Observables together via a specified function and emit single items for each combination based on the results of this function
  • Filter -> emit only those items from an Observable that pass a predicate test
  • FlatMap -> transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single Observable
  • Take -> emit only the first n items emitted by an Observable
  • Reduce -> apply a function to each item emitted by an Observable, sequentially, and emit the final value
  • Skip -> suppress the first n items emitted by an Observable
  • Buffer -> periodically gather items emitted by an Observable into bundles and emit these bundles rather than emitting the items one at a time
  • Concat -> emit the emissions from two or more Observables without interleaving them
  • Replay -> ensure that all observers see the same sequence of emitted items, even if they subscribe after the Observable has begun emitting items
  • Merge -> combine multiple Observables into one by merging their emissions
  • SwitchMap -> transform the items emitted by an Observable into Observables, and mirror those items emitted by the most-recently transformed Observable

Highlights of the examples :

TODO

  • Many examples are to be added

Find this project useful ? ❤️

  • Support it by clicking the button on the upper right of this page. ✌️

Check out an awesome MVP architecture based project which uses RxJava2, Dagger2.

Check out an awesome Kotlin MVP architecture based project which uses RxJava2, Dagger2.

Check out an awesome library for fast and simple networking in Android.

Another awesome library for debugging databases and shared preferences.

Learn to build a ride-sharing Android app like Uber, Lyft.

Check out Mindorks awesome open source projects here

Contact - Let's become friend

License

   Copyright (C) 2016 Amit Shekhar
   Copyright (C) 2011 Android Open Source Project

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Contributing to RxJava 2 Android Samples

Just make pull request. You are in!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].