Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GPRS connection

 
urarom sogard
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The mobile operator is charging me 4 cents / 10 KB of data transmited during a GPRS session. The measurement is made by 10 KB units, so if I send + receive less than 10KB I'm also charged with 4 cents.
I wrote an application witch heavily use the http connection and I want to use a single GPRS session because the app sends small amounts of data (1-2 KB).
I use a NOKIA 6310i and every time a GPRS connection is established a "G" letter is shown is top-left corner of the screen , so I know when a session begins and when is over. Every time a httpconnection is opened, the session is initiated then discarded. So I pay no_of_connection * 4c.
I tried to use a single HTTPConnection, but it throws exceptions like "connection already open".
Is there any solution ?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!