Android Question <app> has stopped

nicieri

Active Member
Licensed User
Longtime User
Hi, I have an App that is a TCP Client and use the START_STICKY for a Service, FusedLocationProvider1, etc.

Everything works fine But... The problem that I have is.. When I turn off the Wifi, or when the Phone change the Network from Wifi to nothing, or Wifi to 4G, or 4G to Wifi.. then...

<app> has stopped

I tried everything...

I tried to put a "Try... Catch" In all my App (every sub and functions) for ignore this Error (In any case my application reconnects when it detects the network.), but this is not working...

This Error still happening.

I can't see the error in B4A, because if I try turning Off the Wifi, obviously that the Bridge is disconnected

Any idea?

Thanks.
 
Top