RxActivityResult icon indicating copy to clipboard operation
RxActivityResult copied to clipboard

This is a library that can help you to receive results from startActivityForResult() as an Observable.

Results 3 RxActivityResult issues
Sort by recently updated
recently updated
newest added

Hello dev: Why not use "zhihu/RxLifecycle" in place of this lib? Like trello/RxLifecycle ```java RxNavi.observe(this, Event.ACTIVITY_RESULT).filter(new Predicate() { @Override public boolean test(ActivityResult activityResult) throws Exception { return activityResult.requestCode() == 7788;...

Caused by java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.support.v4.app.FragmentManagerImpl.checkStateLoss(SourceFile) at android.support.v4.app.FragmentManagerImpl.enqueueAction(SourceFile) at android.support.v4.app.BackStackRecord.commitInternal(SourceFile) at android.support.v4.app.BackStackRecord.commit(SourceFile) at cn.nekocode.rxactivityresult.compact.RxActivityResultCompact.startActivityForResult(SourceFile)

RxActivityResult.startActivityForResult(this, intent, REQUEST_CODE) .subscribe( new Consumer() { @Override public void accept(@NonNull ActivityResult result) throws Exception { if (result.isOk()) { final Intent data = result.getData(); // DO SOME THING } }...