![]() |
Battery - HTTP connection lost problem. I have a connection running in a thread that sends data back via a http connection. When the battery is in critical and radio is turned off, the connection is lost. This issue has been discussed before. The thread contains the http connection as follows: Code: StreamConnection connection = (StreamConnection)Connector.open(rawUrl);Code: if (stop){Code: if (sendThread != null)So my question is, how would you programattically check and re-establish GPRS/http connection. Would it be via the Radio class in the BB API? Do you think this will resolve the issue? I was thinking something like: Code: if (GPRSInfo.getGPRSState() == GPRSInfo.GPRS_STATE_IDLE) |
I faced this issue... the battery getting good didn't turn on radio and didnt get any API to turn on radio. I couldn't find anyway to switch on the radio programatically. Either a device restart or manual turning on of radio was needed. We just prompt user to switch on radio to proceed with app... :-( |
| All times are GMT -5. The time now is 03:42 PM. |
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.