You Are Here:

Community: Developer Discussion Boards

#1 Old Detecting "GPRS on hold" - 2003-04-10, 14:08

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
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,

shmoove
Reply With Quote

#2 Old 2004-04-29, 15:45

Join Date: Mar 2003
Posts: 41
Location: Brisbane, Australia
ghauber
Offline
Registered User
Hi,

I can't answer your question about detecting when the GPRS session is not active and when it's reactivated. But maybe, what you can do is as soon as you get an exception thrown because the connection can't be made, send the app into a wait state (say, another screen), displaying a message to the user to the effect of "GPRS session appears to be on hold. Press a key when GPRS is active again".

Hope that helps,

Gabriel
Reply With Quote

#3 Old 2004-04-29, 15:46

Join Date: Mar 2003
Posts: 41
Location: Brisbane, Australia
ghauber
Offline
Registered User
Oops, just noticed how old this thread was ;-) (Came across it doing research on another GPRS problem I'm having and replied without checking the date of the original post properly)
Reply With Quote

#4 Old 2004-05-29, 08:53

Join Date: Oct 2003
Posts: 149
Location: Portland, OR
Send a message via MSN to mshita Send a message via Yahoo to mshita
mshita
Offline
Regular Contributor
shmoove:

Did you ever find out the answer to your problem? I would be interested to know.

Mounir
Reply With Quote

#5 Old 2004-05-30, 10:07

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
I ended up just Gabriel said. Catching the exception and displaying a message to try again.

shmoove
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia