What I want to do is create a simple cache in memory to try Observables. However, I am stuck because I donβt understand how to create an observable. This is the code I got so far:
public class MovieCache { MovieWrapper movieWrapper; public Observable<MovieWrapper> getMovies() {
In the getMovies() method, I want to create an Observable and return my local MovieWrapper file to the subscriber. How can i do this? I tried using new Observable.just(movieWrapper) , but this leads to a null exception.
android rx-java rx-android
Deichmann dacke andersson
source share