{"id":18004251,"url":"https://github.com/philippeboisney/simpledroidrx","last_synced_at":"2025-06-30T02:35:35.394Z","repository":{"id":92071350,"uuid":"63934164","full_name":"PhilippeBoisney/SimpleDroidRx","owner":"PhilippeBoisney","description":"An application that helps you learn and better understand ReactiveX","archived":false,"fork":false,"pushed_at":"2017-02-17T13:29:49.000Z","size":2008,"stargazers_count":60,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-07T07:51:45.947Z","etag":null,"topics":["android","butterknife","dagger2","reactivex","retrofit2","rxandroid","rxjava","sample-app"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhilippeBoisney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-22T07:43:42.000Z","updated_at":"2024-11-02T04:43:31.000Z","dependencies_parsed_at":"2023-03-13T17:34:59.516Z","dependency_job_id":null,"html_url":"https://github.com/PhilippeBoisney/SimpleDroidRx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PhilippeBoisney/SimpleDroidRx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FSimpleDroidRx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FSimpleDroidRx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FSimpleDroidRx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FSimpleDroidRx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhilippeBoisney","download_url":"https://codeload.github.com/PhilippeBoisney/SimpleDroidRx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhilippeBoisney%2FSimpleDroidRx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262699416,"owners_count":23350295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","butterknife","dagger2","reactivex","retrofit2","rxandroid","rxjava","sample-app"],"created_at":"2024-10-30T00:13:45.455Z","updated_at":"2025-06-30T02:35:35.354Z","avatar_url":"https://github.com/PhilippeBoisney.png","language":"Java","readme":"\u003cp align=\"center\"\u003e\n \u003cimg src =\"/banniere.png\", align=\"center\"/\u003e\n\u003c/p\u003e\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SimpleDroidRx-green.svg?style=true)](https://android-arsenal.com/details/3/3998)\n# SimpleDroidRx\nAn application that helps you learn and understand better ReactiveX on Android.\n\n### Introduction\nI've created this project because, as everyone knows, learn ReactiveX from scratch is a tremendous challenge, and it has a pretty steep learning curve. So I tried to bring together all the samples I found useful to appreciate ReactiveX and how to use it on an Android app.\n### How does it works ?\nWith SimpleDroidRx app, you have several fragments. Each one contains some examples of ReactiveX. Each example is performed using those Rx libraries :\n* [RxJava] : RxJava is a Java VM implementation of Reactive Extensions: a library for composing asynchronous and event-based programs by using observable sequences.\n* [RxAndroid] : Android specific bindings for RxJava.\n* [RxBroadcast] : Reactive Broadcast and LocalBroadcast for Android.\n* [RxBinding] : RxJava binding APIs for Android UI widgets from the platform and support libraries.\n\nIt also uses these massive libraries:\n* [ButterKnife] : Bind Android views and callbacks to fields and methods.\n* [Retrofit] :A type-safe HTTP client for Android and Java\n* [Dagger2] : Dagger is a fully static, compile-time dependency injection framework for both Java and Android. It is an adaptation of an earlier version created by Square and now maintained by Google.\n\n### Mini Screenshots\n\u003cp align=\"left\"\u003e\n \u003cimg width=100 src =\"/Screenshots/hello_worlds_screenshot.png\", align=\"center\"/\u003e\n \u003cimg width=100 src =\"/Screenshots/famous_operators_screenshot.png\", align=\"center\"/\u003e\n \u003cimg width=100 src =\"/Screenshots/error_handling_screenshot.png\", align=\"center\"/\u003e\n \u003cimg width=100 src =\"/Screenshots/background_tasks_screenshot.png\", align=\"center\"/\u003e\n \u003cimg width=100 src =\"/Screenshots/android_simple_sample_screenshot.png\", align=\"center\"/\u003e\n \u003cimg width=100 src =\"/Screenshots/android_rest_sample_screenshot.png\", align=\"center\"/\u003e\n\u003c/p\u003e\n\n### Demo\nYou can test this app with appetize: https://appetize.io/app/g57uqpd3m4nn8w45v0r8awfq9w\n\n### List of Samples\nEach sample is on a fragment and set up in the navigation drawer. It's sorted by level of complexity (from top to bottom). Also, on each sample, an explanatory TextView is here to briefly explain what's happening:\n* [Hello World] : In this fragment, you'll learn how to use an Observable and Observer. Also, you'll create your first stream and use your first operator : map( ).\n\n\u003eExplanation: When you click on the button \"Map( ) my words\", you'll subscribe to an observable on TextView Text. The relative stream (myStream) replaces the words \"Massive View Controller\" by \"MVVM\", \"Hell Callback\" by \"ReactiveX\" and \"AsyncTask\" by \"RxJava\". Finally it adds at the end of TextView \"\u003c3 \u003c3 \u003c3\".\n\n* [Famous Operator] : In this fragment, you'll learn the most commons operators and will get used to them : flatMap( ), filter( ), take( ), doOnNext( )\n\n\u003eExplanation: When you click on \"Play Happy !\" or use the SeekBar, you'll subscribe to an observable on a string array. The relative stream (myStream) observes each item of string array, and apply to it some functions (setSmileyToItem, setCarriotReturnToItem \u0026 filterVersionAndroidThatSucks). It also takes only the number of item set by take( ).Finally, each item is shown in the TextView.\n\n* [Error Handling] : In this fragment, you'll learn how to handle error properly. You'll use map( ) and onError ().\n\n\u003eExplanation: When you press button, you'll subscribe to an observable to relative TextView text. The relative stream (myStreamThatHandleError) executes a function that will test String. If it contains \"callback\" AND \"hell\" then it will throw an error.\n\n* [Background Tasks] : In this fragment, you'll learn how to run one and multiple tasks in the background.\n\n\u003eExplanation: When you press the simple \"SIMPLE TASK\" button, you'll subscribe to an observable that execute a single task running in background (During 4sec) and stop.\nWhen you press the \"DOUBLE TASKS\" button, you'll subscribe to another one observable that executes a first long task to the background (During 8sec) and when over, a second single task will start (During 4 sec).\n\n* [Android Simple Sample] : In this fragment, you'll learn how to set an observer to a button using RxView.clicks( ), and intercept network changes.\n\n\u003eExplanation: When you start fragment, you subscribe to an observable on a network changes. When you disable Wifi or mobile connection, you'll get notified by a Snackbar.\nWhen you press the \"SHOW\" button, it subscribes to an observable. It will show a Snackbar.\n\n* [Android REST Sample With Dagger2] : In this fragment, you'll learn how to make multiple http requests with only single stream. Also, you will learn how to use RxJava with Dagger2 injection.\n\n\u003eExplanation: When you press \"REFRESH\" button, it will subscribe to an observable that gets Github followers of each person you've defined (In a String array), and after processing of requests, update the TextView.\n\n### Contribute\nIt will be awesome if you contribute to this project adding your own sample(s). Just follow this checklist :\n\n- 1 Create a Fragment and name it with the name of your sample. Put it on \"Fragments\" package. Also, create it's layout. You could use the other fragment as a model.\n\u003cp align=\"left\"\u003e\n \u003cimg src =\"/Steps/step1.png\", align=\"center\"/\u003e\n\u003c/p\u003e\n- 2 Add your fragment in MainActivity on \"displayView\" function.\n\u003cp align=\"left\"\u003e\n \u003cimg src =\"/Steps/step2.png\", align=\"center\"/\u003e\n\u003c/p\u003e\n- 3 Add the title of your sample in string.xml on related array (nav_drawer_labels)\n\u003cp align=\"left\"\u003e\n \u003cimg src =\"/Steps/step3.png\", align=\"center\"/\u003e\n\u003c/p\u003e\n- 4 You can also modify the icon menu of your sample in NavigationDrawerAdapter on \"getRessource\" function.\n\u003cp align=\"left\"\u003e\n \u003cimg src =\"/Steps/step4.png\", align=\"center\"/\u003e\n\u003c/p\u003e\n- 5 Update this README.md with your own infos.\n- 6 Make a pull request !\n\nLicense\n-------\n\n    Copyright (C) 2016 Philippe Boisney\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n [RxJava]: \u003chttps://github.com/ReactiveX/RxJava\u003e\n [RxAndroid]: \u003chttps://github.com/ReactiveX/RxAndroid\u003e\n [ButterKnife]: \u003chttp://jakewharton.github.io/butterknife/\u003e\n [Retrofit]: \u003chttp://square.github.io/retrofit/\u003e\n [RxBroadcast]: \u003chttps://github.com/cantrowitz/RxBroadcast\u003e\n [RxBinding]: \u003chttps://github.com/JakeWharton/RxBinding\u003e\n [Dagger2]: \u003chttp://google.github.io/dagger/\u003e\n \n [Hello World]: \u003chttps://github.com/PhilippeBoisney/SimpleDroidRx/blob/master/app/src/main/java/com/cookminute/simpledroidrx/UI/Fragments/Hello_World_Fragment.java\u003e\n [Famous Operator]: \u003chttps://github.com/PhilippeBoisney/SimpleDroidRx/blob/master/app/src/main/java/com/cookminute/simpledroidrx/UI/Fragments/Famous_Operators_Fragment.java\u003e\n [Error Handling]: \u003chttps://github.com/PhilippeBoisney/SimpleDroidRx/blob/master/app/src/main/java/com/cookminute/simpledroidrx/UI/Fragments/Error_Handling_Fragment.java\u003e\n [Background Tasks]: \u003chttps://github.com/PhilippeBoisney/SimpleDroidRx/blob/master/app/src/main/java/com/cookminute/simpledroidrx/UI/Fragments/Background_Tasks_Fragment.java\u003e\n [Android Simple Sample]: \u003chttps://github.com/PhilippeBoisney/SimpleDroidRx/blob/master/app/src/main/java/com/cookminute/simpledroidrx/UI/Fragments/Android_Simple_Sample_Fragment.java\u003e\n [Android REST Sample With Dagger2]: \u003chttps://github.com/PhilippeBoisney/SimpleDroidRx/blob/master/app/src/main/java/com/cookminute/simpledroidrx/UI/Fragments/Android_REST_Sample_Fragment.java\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippeboisney%2Fsimpledroidrx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilippeboisney%2Fsimpledroidrx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilippeboisney%2Fsimpledroidrx/lists"}