Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Potential Uses for RxJava #15

Open
eugenkiss opened this issue Dec 28, 2014 · 1 comment
Open

Investigate Potential Uses for RxJava #15

eugenkiss opened this issue Dec 28, 2014 · 1 comment
Labels

Comments

@eugenkiss
Copy link
Owner

There are some places in the code where I think it would be a gain (see TODOs). But maybe there are more places or maybe there really are not much potential uses for RxJava in Chanobol.

@eugenkiss eugenkiss added the code label Dec 28, 2014
@eugenkiss
Copy link
Owner Author

See http://stablekernel.com/blog/replace-asynctask-asynctaskloader-rx-observable-rxjava-android-patterns/#toc_12

The great thing about this is, unlike Loaders, we have the flexibility to cache this result across many Activities and Services if we choose. Just remove the invalidate() call in onCreate() and let your Manager object decide when to emit new weather data. Possibly on a timer, possibly when the user changes location, possibly ____.

It might make it more principled to use background refresh, caching and providing image pointers between PostsActivity, ImageActivity and GalleryActivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant