title: check internet connection and show turn on window if unavailble
body: <pre><code>   private boolean isNetworkConnected() {
  
              ConnectivityManager cm = (ConnectivityManager)
                                      getSystemService(Context.CONNECTIVITY_SERVICE);
  
              return cm.getActiveNetworkInfo() != null;  
        } 
  </code></pre>
  
  <p>i have tried above code but it's not activating mobile data .</p>
  
  <p>i need to check internet connection and show turn on window if internet connection unavailable. how to do that</p>