Android: mobileControlSet

Dan Friedman dan at clearvisiontech.com
Wed Jul 18 18:34:22 EDT 2012


I can't seem to load a local (included) file in a native browser on Android.  This works perfect on iOS:

on loadURL pFileName
    put specialFolderPath("engine") & "/userGuide/" & pFileName into fURL	
    put "file://" & fURL into fURL
    replace " " with "%20" in fURL
    mobileControlSet sBrowserId, "url", fURL
end loadURL

But, on Android, it just says it can't find the file.  I used "if there is a file" to check the validity of the file and it is "there".  I can even read it in and display it with:

    mobileControlDo sBrowserId, "load", fURL, htmlData

But again, fURL doesn't seem to be accepted so any referenced images in htmlData are missing.

Can Android load a "file" into it's native browser control?  Or, am I doing something wrong?

Any advice would be appreciated.

-Dan



More information about the use-livecode mailing list