title: How to check Internet Connection in Java ME?
body: <p>I am developing a Java ME Application. Here I am doing <code>HttpConnection</code> as follows, </p>
  
  <pre><code>HttpConnection httpConnection = (HttpConnection) Connector.open( url.trim() );
  </code></pre>
  
  <p>Variable url is an valid url. Sometimes because of unavailability of GPRS Connection, I am getting error in HttpConnection Error. So can I check that my <code>HttpConnection</code> is done or not ? </p>