J2ME App: Send HTTP post to webserver when phone is closed.

"Motorola i870"

My J2ME application sends HTTP post to the web server. It woks great when the phone is open. I need to send the HTTP message when the phone is closed. I would really appreciate if you could help me anyway.



velosumdevAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bgloddeCommented:
The phone is essentially in a paused or suspended state when the phone is closed. You will not be able to initiate an POST when the phone is in this state. Some devices give you this capability (basically running a daemon thread), but the vast majority do not. While the i870 is very feature rich, they also do not have the capability to create a constantly running background thread.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
velosumdevAuthor Commented:
Thank you for your tips. I have an application for Motorola i870. Is there anyway I can run the networking when the phone is closed, so that I could send the POST.
bgloddeCommented:
Not without some type of background thread and, as far as I know and read, this device does not have that capability. If you look at the specification for the MIDlet lifecycle, you'll see the paused/suspended state. You *might* be able to trigger a POST when the lid closes, but not after that event has passed -- at least not with the i870
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Wireless Networking

From novice to tech pro — start learning today.