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

628 Views Asked by At

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

enter image description here

1

There are 1 best solutions below

1
Vishal Bhadani On

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");