Android Can't Find Path to Web folder

Ralph DiMola rdimola at evergreeninfo.net
Sun Apr 8 01:09:16 EDT 2018


BR,

I do it and use the same path for both mobile platforms. The only thing I
can think of is that I move the html folder tree to a folder in "the
documents folder". I also zip it up for brevity in the package. When the app
starts the first time(or app update) I unzip it to the documents folder. I
delete the tree before unzipping for an app update. If you need the LCS of
the un-zipper or folder tree deleter let me know.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Sannyasin Brahmanathaswami via use-livecode
Sent: Saturday, April 07, 2018 11:08 PM
To: How LiveCode
Cc: Sannyasin Brahmanathaswami
Subject: Android Can't Find Path to Web folder

I give up! What is the magic that gets the browser widget on Android to see
a local html file

(it always works in iOS)

given the following directory layout

myApp.livecode # the standalone is built from this
      /module
           lexicon.livecode  # with nothing but a browser widget which
points too:
                /web
                    index.html

if have tried all manner of:

hard coded:

     set the itemdel to "/"
     get item 1 to -2 of the effective filename of this stack
     put it & "/web/index.html" into tURL
     set the URL of widget "Browser" to ("file://" & tURL)

# this works on iOS but not on Android 

# Various incarnations of

if isMobile() then
     # this work on iOS 
     # but not on Android
   
  put specialFolderPath("engine") into tRoot
  set the URL of widget "Browser" to ( "file://" &tRoot &
"/modules/lexicon/web/index.html")

else
     # works on desktop

    put specialFolderPath("resources") into tRoot    
    set the URL of widget "Browser" to ( "file://" &tRoot &
"/web/index.html") end if

?? 

BR




_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list