How to handle onError inside RxJava. I am getting “OnErrorNotImplementedException”

前端 未结 3 1245
暖寄归人
暖寄归人 2021-01-18 05:50

In my app I am using ReactiveLocationProvider library (link). I subscribe for updates in the onCreate method. It works fine when the device is online but if I switch my wifi

3条回答
  •  离开以前
    2021-01-18 06:01

    Consider subscribing to the location data with subscribe(Action onNext, Action onError). In other words, you should handle errors that are emitted from the observable data.

提交回复
热议问题