简体   繁体   中英

how to to show a Web page in my WebView, offline, that contains JavaScript codes

I can not speak english correctly, excuse me...

I want to show a Web page in my WebView, offline, But this is not a normal web page.

because, This page contains JavaScript codes to view the panoramic photos.

After I saved this page, then, I click on it, But there is nothing to display me.

Why???

How can I to show this Web page in my WebView, offline.

Help Me Please....

it is my Target Web Site

在此处输入图片说明

Create assets folder in your project and put your webpage in assets folder.

Use following code to display offline webpage from assets folder.

    WebView wView;  
    wView= (WebView) findViewById(R.id.webView1);  
    wView.loadUrl("file:///android_asset/yourhtmlpagename.html");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM