Skip to content

Freshly Cloned Doesn't Show Anything #3

@Ep0chalypse

Description

@Ep0chalypse

Hi and first off thanks for creating this repository and the accompanying blog posts explaining it! I'm trying to learn rxjava/mvp/content providers and this is great.

I can't seem to get this app to work. On a freshly cloned version the app starts up but does not display anything on the ui. From my limited knowledge of how DP works and MVP it seems the remote datastore is never called. If I manually call getPost() on the AppRemoteDataStore it works properly and fetches data

'AppRemoteDataStore remote = new AppRemoteDataStore();

    remote.getPost().subscribeOn(Schedulers.io())
            .observeOn(AndroidSchedulers.mainThread())
            .subscribe(new Action1<List<Post>>() {
                @Override
                public void call(List<Post> posts) {
                    Log.d(TAG, "MainActivity hack: " + posts.size());
                }
            });`

I'd love to play around with this app more and continue my learning, but I've pretty much hit a wall here and I can't figure out the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions