title: Sample code to handle Exceptions
body: <p>I am new to Android mobile application development. 
  I would like to know, how can I handle exceptions like <code>HttpConnection</code> related exceptions or any other exceptions? Do I need to display an <code>AlertDialog</code> to the user?</p>
  
  <p>Kindly provide a sample code or project source code on how can I handle <code>HttpConnection</code> or similar type of Exceptions.</p>