<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显示空白页面

        时间:2023-06-27

          <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显示空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Eclipse、adb 和 ddms 未检测到 Android 模拟器 下一篇:在 Android 中以编程方式解压缩文件

                  相关文章

                • <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>