When developing my application, I have noticed that, when certain networking issues occur (the Wi-Fi is not connected, the device can't connect to the node, etc) exceptions sometimes are thrown. This is to be expected.
However, these exceptions are thrown in the ServiceConnection. The result is that I cannot gracefully handle these from my activity, which is completely separate, through user-facing means such as a Toast.
When developing my application, I have noticed that, when certain networking issues occur (the Wi-Fi is not connected, the device can't connect to the node, etc) exceptions sometimes are thrown. This is to be expected.
However, these exceptions are thrown in the ServiceConnection. The result is that I cannot gracefully handle these from my activity, which is completely separate, through user-facing means such as a Toast.
How is this situation intended to be handled?