title: Find Android GPRS status
body: <p>I have sales application.This application used by sales rep. So We can't make sure anywhere wifi or 3G available. So I have to check the GPRS connection. &amp; Sales rep need to do the replication.If the GPRS strength is higher than particular rate then allow to do the replication. </p>
  
  <p>How to find out GPRS is enable ? I want to call webservice.First It check WIFI,3G,then GPRS. </p>
  
  <p>For WIFI, 3G I did like this</p>
  
  <pre><code> ConnectivityManager manager = (ConnectivityManager) getSystemService(DownlaodTableActivity.CONNECTIVITY_SERVICE);
      Boolean is3g = manager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).isConnectedOrConnecting();
      Boolean isWifi = manager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnectedOrConnecting();
      if(isWifi ){ ..... } else if(is3g){ ..... } else if(GPRS) {....}
  </code></pre>
  
  <p>For GPRS I have done like: <a href="https://stackoverflow.com/questions/6898568/how-to-get-the-gsm-strength-outside-method">https://stackoverflow.com/questions/6898568/how-to-get-the-gsm-strength-outside-method</a></p>
  
  <p>Please anybody tell me how to take the GPRS connection.</p>
  
  <p>(Sales rep must use GPRS connection available phone.)</p>