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