OK, I have this problem. I have a MIDlet that needs to poll my server every few seconds. When the phone gets a call the MIDlet is paused, but as soon as I answer the call the MIDlet is restarted. The problem is that during the call, even though the MIDlet is active the GPRS connection it uses for networking is on hold, so after a few seconds, when it tries to poll the server it gets an Exception since it can't get a response.
Is there anyway to detect that the GPRS connection isn't active (what Exception would be thrown and from what method)? Is there anyway to detect when GPRS becomes available again (after the call is terminated)?
Thanks in advance,