views:

434

answers:

2

the question i have is simple but hard to put in words, ill give it a try anyways. i am trying to load a web page in webview, however the load time is a little high. -is there anyway i can put the images in the assets folder and load them from there instead?

-if not, is there a way i can load the whole site from the assets folder, providing that my php files can still communicate with my internet database? i have already read most tutorials however they are pretty vague when it comes to concrete help.

A: 

There is no way to store your php files on the device itself. They need a server to execute them and sent the result to the device if the are on the device you would just show the php code to your webview and that would certainly not work.

The Webview should be able to cache some of the images itself. But it seems that there is no way to access images from the sd card or the internal storage from your webview.

Maybe it is possible to store some of your data through html5 local storage apis but I don't have any expertise on that.

Janusz
A: 

try this... WebView with custom HTML and local images

Tek Yin