I’m searching for a way to load remote html’s in phonegap android app.
I’m using super.loadUrl("file:///android_asset/www/hello.html"); but how to load remote html page?
I’m searching for a way to load remote html’s in phonegap android app. I’m
Share
it’s very simple Venkat,
just load required html page with the http request,
super.loadUrl("http://www.test.com/test1.html");or you can load local html file like you did
super.loadUrl("file:///android_asset/www/hello.html");and in hello.html used
window.locationin onLoad() javascript function to load external html page.Please make sure you set the internet permission in android manifest file.