title: How to activate suspended 3G connection in android
body: <p>If you access the browser by disabling 3G (clicking F8) , still browser works without any issues.
  I want similar type of functionality in my app , how can I implement same in my app.</p>
  
  <p>Currently we are using following code in our app:</p>
  
  <pre><code>protected boolean isNetworkCoverageAvailable()
  {
     boolean result = false;
    Context oContext = AndroidContext.getContext();
    ConnectivityManager connMgr = (ConnectivityManager) oContext.getSystemService(Context.CONNECTIVITY_SERVICE);
     NetworkInfo wifi = connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
     NetworkInfo mobile = connMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
  
     if(wifi.isConnected() == true){
         result = true;
     } else if (mobile.isConnectedOrConnecting() == true){
         result = true;
     } else {
         result = oMgr.getDataState() == TelephonyManager.DATA_CONNECTED;
     }
     Log.d(TAG, "Result: " + result + "");
     return result;
  }
  </code></pre>
  
  <p>The app is working for Wi-Fi and 3G enabled , but I want app needs to activate 3G automatically if 3G is suspended because of unusuability of device.</p>
  
  <p>How can I do this in Android ?</p>