Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 10:16, 27 June 2008.

Useful Tips

From Forum Nokia Wiki

Code Examples Some Useful Tips

1 - Closing the Network Connection should be in the finally brackets to avoid any exception happen while openning or while reading and writing

HttpConnection Conn=null;
try
{
   Conn=(HttpConnection)Connector.open(URL);//Opening
   /*
   Code here to read and write on this connection
   */
}//closing the try
catch(Exception _Ex)
{
}//catching any exception occurs
finally
{
   try
   {
      if( Conn!=null )
         Conn.close();//Closing
   }
   catch(Exception _Ex)
   {
   }
}//Closing the finally
Related Discussions
Thread Thread Starter Forum Replies Last Post
Access point question msulaiman General Symbian C++ 2 2007-09-12 11:23
Jar opening problem Nokia3110User Mobile Java General 6 2007-12-26 17:54
PAN on Bluetooth for nokia 9500 CyberE Bluetooth Technology 4 2006-01-05 09:09
Memory Full niraj_gandhi Mobile Java General 6 2007-05-18 11:31
HTTPS and Apache tomcat tieuquai Mobile Java Networking & Messaging & Security 8 2008-05-09 19:35
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZjavaQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX