which path do I need to load an HTML file from the android storage. I only get a white page on Android. Do i need any permissions?
Load Website from storage
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
what command are you use specifically, if load local html, need fullpath to dir, html filename, type and for all these if you re using external storage you need to read and write external storage
-
Hello Fernando,
i use "Load URL" action from WebView and DataStorageDirectory$ from the android extension. The index.html is directly in the main folder.
i thought its something like this: DataStorageDirectory$ + "/index.html"
but like i sad, i only get a white screen. I'm using a Nexus5 with Android 6.0
-
oh in android you need to use the load local html that should works
-
Thanks Fernando.
You mean "Load Local Document" under Special Features?
But how do i do that? Type Mime is "txt/html". Directory String is "DataStorageDirectory$".
But what is the HTML String then? "index.html"????
-
Yes
dir: datastorage or externaldatastogare or publicstorage+"/subdir"
type: "text/html"
html: is the filename only "index.html"and wait load
another way is
using edit object: open a file (html is plain text) and set the edit content as load HTML string that should do it
-
Thank you for your help Fernando.
-
Hello Fernando,
is it possible to load pictures from the android storage? Pictures wich are called in the loaded html file? Like you would normaly do in html "<img src="picXY.png" width="..." height="..." alt="..." />"
What im trying to do is load a full webpage from the android storage. With pictures, css file, html code, js files etc.. Is it even possible?
-
yes you can do write your html file to a directory inside datastorage: datastorage()+"/subdir/index.html" and relate to it use the images in that dir but using short path like "./img/image001.jpg" in your html
-
Thank you Fernando
But I do not get it. The whole Android Storage is a mystery to me.
I uploaded a small zip file. With index.html, CSS folder, Img folder etc. A normal html structure. Would be nice if you could use it to create an example out of it.
I think I understand it better when I see it.Please login to see this link.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!