rosjava / android_core

Android libraries for rosjava
145 stars 166 forks source link

Exception handling for ROS ServiceConnections #317

Open EliteMasterEric opened 4 years ago

EliteMasterEric commented 4 years ago

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?