2025-02-17

webView打開本地sdcard上html文件的方法:

webView.loadUrl(“file:///sdcard/test.html”);

webView.loadUrl(“content://com.android.htmlfileprovider/test.html);

webView.loadUrl(“file:///android_asset/icon.png”);

 

摘自 284772894

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *