Code example for WebStorage.QuotaUpdater

Methods: updateQuota

    myWebView.setWebViewClient(new WebViewClient() {
      public void onReachedMaxAppCacheSize(long spaceNeeded,
          long totalUsedQuota, QuotaUpdater quotaUpdater) {
        quotaUpdater.updateQuota(spaceNeeded * 2);
    // this is necessary for "alert()" to work 
    myWebView.setWebChromeClient(new WebChromeClient());
    // allows the control to receive focus 
    // on some versions of Android the webview doesn't handle input focus 
    // properly 
    // this seems to make things work with Android 2.1, but not 2.2 
    // myWebView.requestFocusFromTouch(); 
    // recordAudio(javaScriptInterface); 
Contextual code suggestions in your IDE  Get Codota for Java