Hi,
I am working on a Messaging Application which is sending SMS messages using the web application.
The mobile application polls in specific time interval and connect to the web application to pull and push sms to and from web application.
When the phone is offline i.e. GPRS is not available the application saves the message in the outbox and when the next time user sends some sms (provided that the GS connection is available)then the message from the outbox is also sent to the server.
Now due to changes in requirements I have to send message from outbox as soon as my phone becomes online i.e. as soon as GPRS connection is available to the phone. All the outbox messages must be pushed to the server.
But the problem is that I am unable to send the message as soon as the GPRS becomes online....
so can any body help me on this I think I have to made a new thread that will poll and check the status of the GPRS and as soon as the GPRS becomes online the application send the sms if an
y message is found in the outbox......
Please suggest if you think any better option exist as it seems to me the creating a thread like this will not be the efficient way to handle the situation.
Thanks
Jason

Reply With Quote

