Android Question Catch exception in service

wl

Well-Known Member
Licensed User
Longtime User
Hi,

I keep a socket open in a service and catch all possible exceptions:
stream_error
stream_terminated
In all event code I catch exceptions

When I disable my WIFI the sockets clearly gets connected, and the app shows an error message (something in the line of lib.io...TIMEOUT) ... and the app crashes.

What can I do to catch these exceptions ?

Thanks
 

wl

Well-Known Member
Licensed User
Longtime User
UPDATE: It seems I do always get the Error or Terminated events of the stream. I guess there was some other bug in my code ...
 
Upvote 0
Top