Is it possible to put a html file in some folder in the app and load it with application:urlloader? if yes, then how should i do it? where to put the file in the gideros/eclipse project and what is the exact way to load it? (on android mainly) i need this as the help section in my app is starting to be overwhelming and opening an url would be simplest (no need to implement scrolling etc, easier to maintain), but i want it to work without internet (and without having a server) so i want to open a local html file.
Comments
Scratch that, possibly can be done without it.
The main problem is that files being in .apk asset directory and lots of things can't be used from there (for example playing video, etc).
But if you could put an html file on SD card, then you could try opening it in native browser using link as "file://sdcard/html/links.html"
As you know io methods can use absolute paths, so you can copy html file from resources to any destination you would want and then try to open it using application:openUrl
There was an example of copying files in context of databases, you may use the same code and try if it works
http://docs.giderosmobile.com/reference/plugin/sqlite3#sqlite3
Fragmenter - animated loop machine and IKONOMIKON - the memory game
i've tried
application:openUrl("/sdcard/help.html")
application:openUrl("/mnt/sdcard/help.html")
application:openUrl("file:///sdcard/help.html")
application:openUrl("file:///mnt/sdcard/help.html")
application:openUrl("file://sdcard/help.html")
application:openUrl("file://mnt/sdcard/help.html")
none of them works.
can you help me with this?
btw copying from local to the sdcard root worked fine, also on desktop e.g.
application:openUrl("C:/help.html")
works too.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
Fragmenter - animated loop machine and IKONOMIKON - the memory game
hope you will come back refreshed (and with a solution to this problem).
Fragmenter - animated loop machine and IKONOMIKON - the memory game
But for now, it seems NativeUI with Android bridge could be only solution.
then let's add it as a feature request from my side. let me know if it will be in next gideros version.
Fragmenter - animated loop machine and IKONOMIKON - the memory game