title: app cache doesn't work in the android device (works well on the chrome browser)
body: <p>I'm trying to use app cache to approve the performance.</p>
  
  <p>I have been guided in various sites. (ex. <a href="http://xguru.net/621">http://xguru.net/621</a> ... )</p>
  
  <p>make cache.man file, set mime-type as text/cache-manifest.</p>
  
  <p>Problem is... </p>
  
  <p>it works well at the Google chrome browser, but does not work in my android phone.</p>
  
  <p>I tested at ICS and Gingerbread.</p>
  
  <p>This is manifest file .</p>
  
  <pre><code>CACHE MANIFEST
  # manifest version v0.1 
  
  CACHE:
  ./programs.png
  ./video.png
  
  NETWORK:
  * 
  </code></pre>
  
  <p>and then, I set my webview like this.</p>
  
  <pre><code>getSettings().setAppCacheEnabled(true);
  getSettings().setDomStorageEnabled(true);
  getSettings().setPluginsEnabled(true);
  getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
  </code></pre>
  
  <p>(I changed the cacheMode to LOAD_NORMAL, NO_CACHE, but it's not different.)</p>
  
  <p>To see the cache state, I use this site.
  <a href="http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/">http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/</a></p>
  
  <pre><code>var cacheStatusValues = [];
  cacheStatusValues[0] = 'uncached';
  cacheStatusValues[1] = 'idle';
  cacheStatusValues[2] = 'checking';
  cacheStatusValues[3] = 'downloading';
  cacheStatusValues[4] = 'updateready';
  cacheStatusValues[5] = 'obsolete';
  
  var cache = window.applicationCache;
  cache.addEventListener('cached', logEvent, false);
  cache.addEventListener('checking', logEvent, false);
  cache.addEventListener('downloading', logEvent, false);
  cache.addEventListener('error', logEvent, false);
  cache.addEventListener('noupdate', logEvent, false);
  cache.addEventListener('obsolete', logEvent, false);
  cache.addEventListener('progress', logEvent, false);
  cache.addEventListener('updateready', logEvent, false);
  
  function logEvent(e) {
      var online, status, type, message;
      online = (navigator.onLine) ? 'yes' : 'no';
      status = cacheStatusValues[cache.status];
      type = e.type;
      message = 'online: ' + online;
      message+= ', event: ' + type;
      message+= ', status: ' + status;
      if (type == 'error' &amp;&amp; navigator.onLine) {
          message+= ' (prolly a syntax error in manifest)';
      }
      console.log(message);
  }
  
  window.applicationCache.addEventListener(
      'updateready',
      function(){
          window.applicationCache.swapCache();
          console.log('swap cache has been called');
      },
      false
  );
  </code></pre>
  
  <p>Lastly, This is the log I see on my android phone.</p>
  
  <pre><code>[cache Resource] app cache support! 
  [cache Resource] DOWNLOADING 
  [cache Resource] event online: yes, event: checking, status: uncached 
  [cache Resource] event online: yes, event: downloading, status: uncached 
  [cache Resource] event online: yes, event: progress, status: uncached 
  [cache Resource] event online: yes, event: progress, status: uncached 
  [cache Resource] event online: yes, event: error, status: uncached (prolly a syntax error in manifest) 
  </code></pre>
  
  <p>Images are downloaded but we get the error at last line. 
  So it is always in a uncached.</p>
  
  <p>I guess the problem is on the webview setting or android application.
  But i cannot handle it. </p>
  
  <p>give me a tip to use app cache.. plz...</p>