Android: mobileControlSet

Ralph DiMola rdimola at evergreeninfo.net
Wed Jul 18 21:34:28 EDT 2012


This is sounding familiar. I think I remember that there was a double slash
funny I ran into with Android and I also remember that it was not the same
on iOS. Try using only one slash after the "file:"

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


-----Original Message-----
From: use-livecode-bounces at lists.runrev.com
[mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Dan Friedman
Sent: Wednesday, July 18, 2012 9:19 PM
To: use-livecode at lists.runrev.com
Subject: Re: Android: mobileControlSet

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.


-Dan



> Dan,
> 
> Rename the apk to .zip and look in the assets folder and see if the 
> file is where you expect it to be. The apk assets folder will become 
> the engine folder on the device. Also remember the engine folder is read
only.
> 
> Ralph DiMola
> MIS Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
> 
> -----Original message-----
> From: Dan Friedman <dan at clearvisiontech.com>
> To: use-livecode at lists.runrev.com
> Sent: Wed, Jul 18, 2012 23:05:09 GMT+00:00
> Subject: Re: Android: mobileControlSet
> 
> Ralph,
> 
> I took out the line "replace " " with "%20" in fURL"...  Same issue.  
> Still doesn't work... Android cant find the url fURL
> 
> -Dan
> 
> 
> > Dan,
> > 
> > I've never done==> replace " " with "%20" in fURL. on Android for a 
> > local file. As far as I know the Android file system will not like 
> > the "%20"s
> for
> > file access on the device.
> > 
> > Ralph DiMola
> > IT Director
> > Evergreen Information Services
> > 
> > rdimola at evergreeninfo.net
> > 
> >> 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

_______________________________________________
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