how to save offline page
<p>I know this kind of silly question. however, I was trying to save an html page in my app, just in case the user has no connectivity. I did the following but failed:</p>

<pre><code>  if(CheckConnectivity())
    {mWebView.loadUrl("http://www.google.com");}
    else {mWebView.loadUrl("file:///android_asset/offline.html");}
</code></pre>

<p>Then I dragged the offline.html to my assets folder. for CheckConnectivity I did this:</p>

<pre><code>      private boolean CheckConnectivity() {
ConnectivityManager CK = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo netInfo = CK.getActiveNetworkInfo();
if (netInfo != null &amp;&amp; netInfo.isConnectedOrConnecting()) {
    return true;
}
return false;
</code></pre>

<p>Is there something wrong? Do I have to do anything in the manifest? </p>
