User Tag List

Results 1 to 10 of 10

Thread: Load Website from storage

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    WhiteEyeDesign's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Load Website from storage

    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?

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    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
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    WhiteEyeDesign's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    oh in android you need to use the load local html that should works
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    WhiteEyeDesign's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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"????

  6. #6
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    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
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    WhiteEyeDesign's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your help Fernando.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    WhiteEyeDesign's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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?

  9. #9
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    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
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    WhiteEyeDesign's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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. ;-)

    https://drive.google.com/file/d/0B2E...ew?usp=sharing

Similar Threads

  1. IAP Non-comsumable storage
    By SevenSails in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 7th November 2012, 02:02 PM
  2. how much you can have ini data storage for iOS?
    By peposoft in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 24th February 2012, 07:57 AM
  3. INI storage limits?
    By diefox in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th August 2011, 11:06 AM
  4. Data storage
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th February 2009, 05:09 PM
  5. Data storage
    By Ganryu in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 5th November 2008, 07:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •