<tfoot id='nrH8f'></tfoot>
  • <small id='nrH8f'></small><noframes id='nrH8f'>

      <legend id='nrH8f'><style id='nrH8f'><dir id='nrH8f'><q id='nrH8f'></q></dir></style></legend>

        <bdo id='nrH8f'></bdo><ul id='nrH8f'></ul>
      1. <i id='nrH8f'><tr id='nrH8f'><dt id='nrH8f'><q id='nrH8f'><span id='nrH8f'><b id='nrH8f'><form id='nrH8f'><ins id='nrH8f'></ins><ul id='nrH8f'></ul><sub id='nrH8f'></sub></form><legend id='nrH8f'></legend><bdo id='nrH8f'><pre id='nrH8f'><center id='nrH8f'></center></pre></bdo></b><th id='nrH8f'></th></span></q></dt></tr></i><div id='nrH8f'><tfoot id='nrH8f'></tfoot><dl id='nrH8f'><fieldset id='nrH8f'></fieldset></dl></div>

        android webview显示空白页面

        android webview displaying blank page(android webview显示空白页面)

          <i id='MgDIU'><tr id='MgDIU'><dt id='MgDIU'><q id='MgDIU'><span id='MgDIU'><b id='MgDIU'><form id='MgDIU'><ins id='MgDIU'></ins><ul id='MgDIU'></ul><sub id='MgDIU'></sub></form><legend id='MgDIU'></legend><bdo id='MgDIU'><pre id='MgDIU'><center id='MgDIU'></center></pre></bdo></b><th id='MgDIU'></th></span></q></dt></tr></i><div id='MgDIU'><tfoot id='MgDIU'></tfoot><dl id='MgDIU'><fieldset id='MgDIU'></fieldset></dl></div>

        1. <tfoot id='MgDIU'></tfoot>
          1. <legend id='MgDIU'><style id='MgDIU'><dir id='MgDIU'><q id='MgDIU'></q></dir></style></legend>
              <tbody id='MgDIU'></tbody>
              <bdo id='MgDIU'></bdo><ul id='MgDIU'></ul>

              <small id='MgDIU'></small><noframes id='MgDIU'>

                • 本文介绍了android webview显示空白页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个 android 应用程序,我正在使用在 android 2.3.3 上运行的模拟器进行开发,其中嵌入的 WebView 在嵌套在线性布局(垂直)中的框架布局中.无论我使用什么代码,它实际上都不会做任何事情.我将 android 应用程序的权限设置为 INTERNET.即使尝试仅加载 HTML 代码.我得到一个空白的白页,没有错误,什么都没有.logcat 中也没有任何内容.

                  I have an android application that I am developing using the emulator running on android 2.3.3 with an embedded WebView in a framelayout nested in a linearlayout (vertical). No matter what code I use it never actually does anything. I have Permissions on the android application set to INTERNET. Even when trying to load just the HTML code. I get a blank white page, no errors no nothing. Nothing in logcat as well.

                  WebView wview = (WebView)findViewById(R.id.webView1);
                  wview.getSettings().setJavaScriptEnabled(true);
                  

                  我已经尝试了所有这三种方法来尝试将任何内容加载到 webview 中:

                  I have tried all three of these to attempt to load anything into the webview:

                  wview.loadUrl("http://www.google.com");
                  wview.loadData("<HTML><BODY><H3>Test</H3></BODY></HTML>","text/html","utf-8");
                  wview.loadDataWithBaseURL(null, "<HTML><BODY><H3>Test</H3></BODY></HTML>","text/html","utf-8",null);
                  

                  这三个都给了我相同的结果.什么都没有.

                  All three give me the same results. Nothing.

                  有什么想法吗?

                  推荐答案

                  WebSettings settings = wbView.getSettings();
                  settings.setDomStorageEnabled(true);
                  

                  这篇关于android webview显示空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                  How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                  KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                  How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                  How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                  Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)
                • <tfoot id='R0Z5L'></tfoot>
                    <bdo id='R0Z5L'></bdo><ul id='R0Z5L'></ul>

                    <small id='R0Z5L'></small><noframes id='R0Z5L'>

                  • <i id='R0Z5L'><tr id='R0Z5L'><dt id='R0Z5L'><q id='R0Z5L'><span id='R0Z5L'><b id='R0Z5L'><form id='R0Z5L'><ins id='R0Z5L'></ins><ul id='R0Z5L'></ul><sub id='R0Z5L'></sub></form><legend id='R0Z5L'></legend><bdo id='R0Z5L'><pre id='R0Z5L'><center id='R0Z5L'></center></pre></bdo></b><th id='R0Z5L'></th></span></q></dt></tr></i><div id='R0Z5L'><tfoot id='R0Z5L'></tfoot><dl id='R0Z5L'><fieldset id='R0Z5L'></fieldset></dl></div>
                        1. <legend id='R0Z5L'><style id='R0Z5L'><dir id='R0Z5L'><q id='R0Z5L'></q></dir></style></legend>

                              <tbody id='R0Z5L'></tbody>