Show offline webpages


Manually

Create a new folder named 'assets' in app/src/main/ you can also right click > new > folder > assets folder.

Put your offline webpages in this folder.

Use the following url for the webview: 

file:///android_asset/yourfile.html

Where yourfile.html is a file in your assets folder.

Web Panel (Web2App)

If you use our web panel the flow would be as following:
* Use file:///android_asset/yourfile.html in your web panel as URL.
* Generate the template.
* After generating and opening the template in Android Studio.
* Now create a new folder named 'assets' in app/src/main/ you can also right click > new > folder > assets folder (if it does not yet exists).
* Put your offline webpages in this folder, make sure the pages match the url you entered earlier (in this case, a file in the root of assets named yourfile.html)

Tags: webview
Last update:
2016-03-25 16:58
Author:
Sherdle
Revision:
1.3
Average rating: 3.67 (3 Votes)

You can comment this FAQ