Re: Android: mobileControlSet
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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android: mobileControlSet
Jac, Why are you using the cache path instead of maybe the engine path? just curious as to the need. thanks -- Tom McGrath III http://lazyriver.on-rev.com 3mcgr...@comcast.net On Jul 18, 2012, at 9:42 PM, J. Landman Gay wrote: put specialFolderPath(cache) slash caseydocs.html into tDocFile mobileControlSet sBrowserID, url, file: tDocFile That worked on iOS too. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android: mobileControlSet
On 7/19/12 7:10 AM, Thomas McGrath III wrote: Jac, Why are you using the cache path instead of maybe the engine path? just curious as to the need. I can't remember. I'm sure I must have had a reason. For the docs, the engine folder would have worked. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android: mobileControlSet
On 7/19/12 2:25 AM, Dan Friedman wrote: 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. All I can think of is to rename the file to a single word and see if that works. If not, look at the content of the file and see if the html might be incompatible somehow. Try a simple file with the bare minimum html to see if you can get that to display. Or put the file on your server and see if the default Android browser can open it. Stabs in the dark. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android: mobileControlSet
Else try (documents instead of engine) : file: specialFolderPath(documents) /yourfile.txt) witch works fine on android there Best, Pierre Le 19 juil. 2012 à 04:49, Andre Garzia a écrit : 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 rdim...@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 rdim...@evergreeninfo.net -Original message- From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Pierre Sahores mobile : 06 03 95 77 70 www.sahores-conseil.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Android: mobileControlSet
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 %20s for file access on the device. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Dan Friedman Sent: Wednesday, July 18, 2012 6:34 PM To: use-livecode@lists.runrev.com Subject: Android: mobileControlSet 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
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 %20s 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android: mobileControlSet
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 rdim...@evergreeninfo.net -Original message- From: Dan Friedman d...@clearvisiontech.com To: use-livecode@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 %20s 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Android: mobileControlSet
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 rdim...@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 rdim...@evergreeninfo.net -Original message- From: J. Landman Gay jac...@hyperactivesw.com To: How to use LiveCode use-livecode@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 | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode __**_ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/**mailman/listinfo/use-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode