{"action":"opened","issue":{"url":"https://api.github.com/repos/patloew/RxLocation/issues/4","repository_url":"https://api.github.com/repos/patloew/RxLocation","labels_url":"https://api.github.com/repos/patloew/RxLocation/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/patloew/RxLocation/issues/4/comments","events_url":"https://api.github.com/repos/patloew/RxLocation/issues/4/events","html_url":"https://github.com/patloew/RxLocation/issues/4","id":189900127,"number":4,"title":"Question: How use checkAndHandleResolution to handle only Location","user":{"login":"esdrasdl","id":13546122,"avatar_url":"https://avatars.githubusercontent.com/u/13546122?v=3","gravatar_id":"","url":"https://api.github.com/users/esdrasdl","html_url":"https://github.com/esdrasdl","followers_url":"https://api.github.com/users/esdrasdl/followers","following_url":"https://api.github.com/users/esdrasdl/following{/other_user}","gists_url":"https://api.github.com/users/esdrasdl/gists{/gist_id}","starred_url":"https://api.github.com/users/esdrasdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esdrasdl/subscriptions","organizations_url":"https://api.github.com/users/esdrasdl/orgs","repos_url":"https://api.github.com/users/esdrasdl/repos","events_url":"https://api.github.com/users/esdrasdl/events{/privacy}","received_events_url":"https://api.github.com/users/esdrasdl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-17T00:50:22Z","updated_at":"2016-11-17T00:50:22Z","closed_at":null,"body":"Hi. I liked you sample about how to use this awesome library. I'm quite new on reactive programming, could you provide a sample on how to use checkAndHandleResolution to recovery only the Location and not an Address? You can see my attempt above. Actually I'm having some trouble to `mRxLocation.location().lastLocation()` returns a Observable < Location > . Am I on the right path?\r\n\r\n```\r\n@Override\r\n    public void startLocationPooling() {\r\n        disposable.add(\r\n                mRxLocation.settings().checkAndHandleResolution(locationRequest)\r\n                        .flatMapObservable(this::getLocationObservable)\r\n                        .observeOn(AndroidSchedulers.mainThread())\r\n                        .subscribe(mView::onLocationUpdate, throwable -> Log.e(TAG, \"Error fetching location\", throwable));\r\n    }\r\n\r\n    private Observable<Location> getLocationObservable(boolean success) {\r\n        if (success) {\r\n            return mRxLocation.location().updates(locationRequest);\r\n        } else {\r\n            mView.onLocationSettingsUnsuccessful();\r\n            return mRxLocation.location().lastLocation();\r\n        }\r\n    }\r\n```"}}
{"actor":{"display_login":"esdrasdl"}}