webview给loaddata之后
然后就是只有上面title字串,下面的应该显示html页的画面黑黑一片,什么都不显示,我的SDK是1.5。
网络连接权限确定已经打开,因为我loaddata(htmlString, "text/html", "utf-8")中的htmlString就是网络抓取的。
我又试了loadurl("http://www.sogou.com");还是黑片(模拟器自带浏览器可以浏览该网址)
求大侠解救,我搞了一晚上了,快10点了还在加班。。 htmlStr = transNode.getHtmlStr();//跟到此处将htmlStr中的字串放到windows IE可以正常浏览。

WebView webView = (WebView)this.findViewById(R.id.ExpWebView);
webView.getSettings().setJavaScriptEnabled(true); 
webView.loadData(htmlStr, "text/html", "utf-8");
AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="cn.bxc.ibag"
      android:versionCode="1"
      android:versionName="1.0">
      <uses-permission android:name="android.permission.INTERNET" />
      <uses-permission android:name="android.permission.WRITE_SETTINGS" />
      <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".myAppMain"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
<activity android:name=".MenuList" android:label="@string/MenuList_name"/>
        <activity android:name=".DictList" android:label="@string/DictList_name"/>
        <activity android:name=".DictKeyList" android:label="@string/DictKeyList_name"/>
        <activity android:name=".Explain" android:label="explain"/>
    </application>
    <uses-sdk android:minSdkVersion="3" />
</manifest> 该画面layout<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  
  <WebView android:id="@+id/ExpWebView"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"/>
  
</LinearLayout>