接楼上
3.加上以下代码
WebSettings webSettings = webview.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccess(true);
webSettings.setDomStorageEnabled(true);
3.加上以下代码
WebSettings webSettings = webview.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setAllowFileAccess(true);
webSettings.setDomStorageEnabled(true);
2016-01-29
总结一下不能运行的解决办法:
1.注释掉con.setDoOutput(true);
2.在androidmanifest中添加<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
1.注释掉con.setDoOutput(true);
2.在androidmanifest中添加<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
2016-01-29