Android: mobileControlSet
Dan Friedman
dan at clearvisiontech.com
Thu Jul 19 03:25:01 EDT 2012
Man, I don't know what I am doing wrong!
Here's EXACTLY what I am doing:
put specialFolderPath("engine") & "/userGuide/" & pFileName into fURL
put "file:" & fURL into fURL
answer (url (fURL)) --to test that it can read the file, and that the file is there
mobileControlSet sBrowserId,"url",fURL
When this runs on my Android device, I get a answer dialog of the text of the html document. So, it has to be reading the file that is in the right place! But, I get a "Webpage not available" message in the browser.
Seems to work for everyone but me... I'm lost.
-Dan
> Folks,
>
> Use something like:
>
> "file:" && the engine folder
>
> Do not use the double slash after the protocol.
>
> Cheers
>
> Sent from my ASUS Transformer
> http://andregarzia.com :: Desktop, Mobile and Web programming
> On Jul 18, 2012 10:46 PM, "Ralph DiMola" <rdimola at evergreeninfo.net> wrote:
>
> > Jacque,
> >
> > You be right about those spaces. I was having problems with intents when I
> > had that slash issue. That was with 5.01.
> >
> > Ralph DiMola
> > MIS DirectorEvergreen Information Services
> > rdimola at evergreeninfo.net
> >
> > -----Original message-----
> > From: "J. Landman Gay" <jacque at hyperactivesw.com>
> > To: How to use LiveCode <use-livecode at lists.runrev.com**>
> > Sent: Thu, Jul 19, 2012 01:33:50 GMT+00:00
> > Subject: Re: Android: mobileControlSet
> >
> > On 7/18/12 8:18 PM, Dan Friedman wrote:
> >
> >> Ralph,
> >>
> >> Yeah... it's there. Like I said before, I can read the data from the
> >> same
> >>
> > location and put it in the browser with:
> >
> >>
> >> mobileControlDo sBrowserId, "load", fURL, htmlData
> >>
> >> I just can't load it as a url with:
> >>
> >> mobileControlSet sBrowserId, "url", fURL
> >>
> >> I think it's something to do with loading a local "file" that's the
> >>
> > problem.
> >
> > I've loaded local files successfully on Android. Just for curiosity's
> > sake, what happens if you rename the file without spaces? I'm still
> > suspicious of those. The file I was displaying had no spaces in the name.
> >
> > -- Jacqueline Landman Gay | jacque at hyperactivesw.com
> > HyperActive Software | http://www.hyperactivesw.com
> >
More information about the use-livecode
mailing list