Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unsble to close http connection in nokia 3230  RSS feed

 
sundeep sharma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi gurus
I have create a application in which i have made http conntion
and at end close connection.


HttpConnection con = null;
InputStream in = null;
xmlData = "";
try
{
con = (HttpConnection) Connector.open(url,3);
in = con.openInputStream();
int ch;
while((ch = in.read())!=-1)
xmlData = xmlData + (char) ch;}
catch(Exception e){
System.out.println("Error :" + e.toString());
}
finally
{
try
{
if(in!=null)
in.close();
if(con!=null)
con.close();
}
catch(Exception ee){}



But after connetion made is does not close device nokia 3230 still shows [G] gprs connected. I this there is some phone setting proble but i am not getting. Could any guru help me.. any suggestion

sundeep sharma
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!