title: check internet connection on android (eclipse)
body: <p>I need code for this Algorithm in android Eclipse programming :</p>
  
  <pre><code>If internet connection = connect then open program 
  else show error_activity.xml
  </code></pre>