Android Can't Find Path to Web folder

Sannyasin Brahmanathaswami brahma at hindu.org
Sat Apr 7 23:08:06 EDT 2018


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






More information about the Use-livecode mailing list