webview change url to internal file

28 views
Skip to first unread message

francisco jose

unread,
Oct 18, 2016, 3:56:02 PM10/18/16
to Kivy users support
I want to change the URL of the webview, I have included a folder called htdoc containing the index.html file

webview
.loadUrl('file:///htdoc/index.html')
 
but not work, I must make it work?

Bill Janssen

unread,
Oct 18, 2016, 8:56:24 PM10/18/16
to Kivy users support
You're not giving us enough information to be able to answer this.

How do you know it doesn't work?  What are the symptoms?  What do you see in the log file?  What version of Kivy, on what operating system, are you using?

ZenCODE

unread,
Oct 19, 2016, 2:59:12 AM10/19/16
to Kivy users support
We also noted that on Android, local file browsing is deliberately disabled. I would try to avoid that if you can. It's a pain, but it's not really within Kivy's control as the OS/mobile browser itself prevents this...(not sure which, just know it worked for us on desktop but not Android)

francisco jose

unread,
Oct 24, 2016, 6:31:31 PM10/24/16
to Kivy users support
it does not work that use adb "adb logcat *: S python: D" and I levee not find the path "file: ///htdoc/index.html"

francisco jose

unread,
Oct 24, 2016, 6:36:55 PM10/24/16
to Kivy users support
it does not work that use adb "adb logcat *: S python: D" and I levee not find 
the path "file: ///htdoc/index.html"



Alexander Taylor

unread,
Oct 24, 2016, 7:48:22 PM10/24/16
to Kivy users support
You can load local html files, but this path is to an absolute filepath /htdoc/index.html. Do you expect this filepath to exist?
Reply all
Reply to author
Forward
0 new messages