{"id":18660393,"url":"https://github.com/patrick-doyle/android-rxintents","last_synced_at":"2026-03-12T19:35:00.837Z","repository":{"id":152359165,"uuid":"62971690","full_name":"patrick-doyle/android-rxintents","owner":"patrick-doyle","description":"RxWrapper around  startActivityForResult and managing the callbacks","archived":false,"fork":false,"pushed_at":"2017-06-30T14:25:02.000Z","size":175,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-11T22:06:55.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/patrick-doyle.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-09T22:31:27.000Z","updated_at":"2018-04-17T07:31:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd9fcac7-4a69-43ed-9258-e3d29755570a","html_url":"https://github.com/patrick-doyle/android-rxintents","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patrick-doyle/android-rxintents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-doyle%2Fandroid-rxintents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-doyle%2Fandroid-rxintents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-doyle%2Fandroid-rxintents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-doyle%2Fandroid-rxintents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrick-doyle","download_url":"https://codeload.github.com/patrick-doyle/android-rxintents/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-doyle%2Fandroid-rxintents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30439994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T07:43:33.497Z","updated_at":"2026-03-12T19:35:00.812Z","avatar_url":"https://github.com/patrick-doyle.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Android RxJava wrapper for startActivityForResult\n\n## RxIntent \n\n#### Setup\nAdd to root build.gradle\n\n```groovy\n    allprojects {\n        repositories {\n            jcenter()\n            mavenCentral()\n        }\n    }\n```\nIn your module build.gradle file add to the dependencies block\n\n```groovy\n    dependencies {\n        compile \"com.twistedequations.rx:rx-intent:1.0.0\"\n    }\n```\nIf its giving an error about not finding a jar file use `com.twistedequations.rx:rx-intent:1.0.0@aar` instead\n\n## Usage\n\nTo listen for onActivityForResultEvents\n```java\n    Observable\u003cRxIntentResult\u003e observable = RxIntent.observeActivityForResult(activity, requestCode);\n```\n\nThe Observable will emit one event when the result activity returns and then \nwill finish with an onCompleteEvent. \n\nTo start the activity for result use the `RxIntent.startActivityForResult(activity, intent, options, requestCode)` method.\nthis will start the activity and any `RxIntent.observeActivityForResult(activity, requestCode)` observables will emit the result of the callback as log as the \nrequest codes are the same.\n\nUse `RxIntent.startAndObserveActivityForResult(activity, intent, options, requestCode)` method to start the activity \n\nTo Handle activities being recreated while in the next activity is visible you can merge the results of `observeActivityForResult()` with a `startAndObserveActivityForResult()`\ncall into a single stream.\n\n```java\n    final Observable\u003cRxIntentResult\u003e rxIntentObservable = RxIntent.observeActivityForResult(RxIntentActivity.this, REQUEST_CODE);\n    \n    final Observable\u003cRxIntentResult\u003e result = RxView.clicks(view)\n            .flatMap(new Func1\u003cVoid, Observable\u003cRxIntentResult\u003e\u003e() {\n                @Override\n                public Observable\u003cRxIntentResult\u003e call(Void aVoid) {\n                    return RxIntent.startAndObserveActivityForResult(RxIntentActivity.this, intent, REQUEST_CODE);\n                }\n            });\n\n    final Observable\u003cRxIntentResult\u003e rxIntentResultObservable = Observable.merge(rxIntentObservable, result);\n    //handle the events from the rxIntentResultObservable\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick-doyle%2Fandroid-rxintents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrick-doyle%2Fandroid-rxintents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick-doyle%2Fandroid-rxintents/lists"}