close
1.AndroidManifest.xml
加入<uses-permission android:name="android.permission.INTERNET" />
2.main.xml
<WebView
android:id="@+id/mWebView"
android:layout_height="400px"
android:layout_width="320px"
android:layout_x="0px"
android:layout_y="0px"
android:focusable="false"
/>
3.使用
String strURI=("http://www.google.com");
mWebView.loadUrl(strURI);
全站熱搜