Re: OT (?): Bookmarking GPS coords

2017-04-10 Thread Alan via use-livecode
Hi Alex

It's pretty straightforward to record current location on mobile - using 
mobileStartTrackingSensor, mobileSensorReading (when you want to grab current 
location) and so on.

Just make sure you start tracking when the user starts your app to give the GPS 
system time to get going and you might also want to check the horizontal 
accuracy of your reading(s) to ensure that it's within a reasonable threshold 
and not eg. 1000m. Reasonable = 3-10m probably.

I've done a few location apps so what you're wanting to do is quite possible. 
Good luck and have fun! :-)

cheers

Alan
___
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: Weirdness with filter (maybe?)

2017-04-20 Thread Alan via use-livecode
Try

filter lines of MyList with ("*" & CharStringX & "*" & tab & "*")

to get all lines where CharStringX is contained in the first part of the string 
before the tab.


> filter lines of MyList with ("*" & CharStringX & "*" & tab)

HTH

cheers

Alan
___
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


Mobile options menu problem LC9

2017-07-26 Thread Alan via use-livecode
LC 9.0.0 DP8

Using an options menu used to bring up the mobile options menu normally and 
worked well. However I've noticed in LC9 that selecting the last item in the 
menu does not update the options menu label correctly - it remains blank.

Has anyone else seen this and is there a solution?

cheers

Alan
___
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


mobile - fullscreenmode "exactFit"

2017-07-06 Thread Alan via use-livecode
On mobile, shouldn't

   set the fullscreenmode of this stack to "exactFit"

scale the stack so that it fits on, and fills, the mobile screen?

I seem to having problems with this using LC9dp7 currently.

Also have an unrelated problem with a menuButton option called "Dead" not being 
passed through when selected, though the "Alive" one is successfully on the 
same button. Weird. Perhaps time to re-boot...

Ideas?

cheers

Alan :-)
___
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: mobile - fullscreenmode "exactFit"

2017-07-06 Thread Alan via use-livecode
Hi Colin

Thanks for the comments. In this particular case I'm not modifying my interface 
layout for different screen sizes - it's a quick implementation and at this 
stage isn't a concern.

The reminder about the splash screens solved the issue for me though there 
still must have been some "misfit" - as the app was working ok (in relation to 
this) in LC8. On re-selecting the same splash screen files, it successfully 
filled and stretched to cover the screen... what I was expecting. So thanks for 
the reminder!

cheers

Alan :-)

On 7 Jul 2017, at 6:47 am, Colin Holgate wrote:

> Date: Thu, 6 Jul 2017 08:42:27 -0700
> From: Colin Holgate <colinholg...@gmail.com>
> To: How to use LiveCode <use-livecode@lists.runrev.com>
> Subject: Re: mobile - fullscreenmode "exactFit"
> Message-ID: <c7e3256e-5403-44a3-993c-d52b8788a...@gmail.com>
> Content-Type: text/plain; charset=utf-8
> 
> On the exactFit question, I still can?t think of a use case for that mode. 
> What it should do is stretch your card contents to fill the screen. The other 
> fullscreenmodes are more useful.
> 
> Do you lay out your interface with code? If not, what?s your approach for 
> handling 16:9 iPhone screen and 4:3 iPad screen?
> 
> One other thing, if you?re testing on a physical iPhone, whether the card 
> fills the whole screen depends on if you have included the 
> default-5...@2x.png splash screen. Without that it will only fill the center 
> area, there would be borders too.
> 
> 
> 
>> On Jul 5, 2017, at 11:52 PM, Alan via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> On mobile, shouldn't
>> 
>>  set the fullscreenmode of this stack to "exactFit"
>> 
>> scale the stack so that it fits on, and fills, the mobile screen?
>> 
>> I seem to having problems with this using LC9dp7 currently.
>> 
>> Also have an unrelated problem with a menuButton option called "Dead" not 
>> being passed through when selected, though the "Alive" one is successfully 
>> on the same button. Weird. Perhaps time to re-boot...
>> 
>> Ideas?
>> 
>> cheers
>> 
>> Alan :-)


___
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


Mobile - "Copy Files" tab of Standalone

2017-07-07 Thread Alan via use-livecode
Using LC9dp7 - I'm adding files and a folder to be used by the Standalone 
Builder in the "Copy Files" tab. For some reason, when adding a file in a 
sub-folder, it seems to create the sub-folder as well when testing the app in 
the Simulator - I'm pretty sure that this didn't used to be the case. It's 
correctly locating it in the specialFolderPath("resources"), just also creating 
the extra sub-folder before placing it inside there.

i.e. I include a file:

data/test.txt

and I expect that to be in

specialFolderPath("resources")  & "test.txt"

but instead it's in

specialFolderPath("resources") & "/data/test.txt"

I guess I should check on the device to see if it's the same or not.

Any suggestions welcome.

cheers

Alan
___
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: Scrolling Groups on Mobile - Show a little of what is below

2017-09-20 Thread Alan via use-livecode
Hi BR

What's lacking is the visual feedback that there's something "more"... 

One way you might give an indication could be to flash the mobile scrollbars to 
show how much of the group is visible.

e.g. 
smControlSet sScrollerID, "indicatorStyle", "white" 
smControlSet sScrollerID, "vIndicator", true

I can't remember now if the indicator flashes by itself or not, but if not then 
just send messages in time to show then hide then show again to "flash" it... 

Maybe that'd work?

HTH

cheers

Alan

> On 21 Sep 2017, at 2:50 pm, Sannyasin Brahmanathaswami  
> wrote:
> 
> 
> FYI this is a tip that came from Jacque, but I had to experience it "live" 
> myself. Alex though it useful to share?
> 
> On a busy day here (we have 100 plus visitors daily) I will go outside and 
> get complete strangers to  download the new app and watch them as they go 
> thru initial install and usage.
> 
> Fascinating to watch e.g. our pixel perfect fit of rows on the home screen is 
> for a scrolling group that has more rows below screen.. But this is "wrong" 
> because the proper way to do it is, says Jacque: create the rows so the 
> bottom one is a bit cut off, otherwise a subset of users never try to scroll 
> up!
> 
> Yep.. I had several users tap on the content to go to the links that appeared 
> there. they would go "home" and tap the next one.. and never swipe up?
> 
> They think what they see it all there is.  But when you show half of a row at 
> the bottom, the user instinctively swipes up?? But the screens were designed 
> by a graphic designer who does magazine design? not app design? so his design 
> instinct is for the printed page and he will always strive for a "perfect 
> fit"  and all trouble we went to take 736 pixes height, subtract the hero 
> image on top and divide the remainder *exactly* so that row would fit 
> precisely.. only shot our UX in the foot? ha!
> 
> from the land of
> 
> Things you will never know
> unless you watch over someone's shoulder
> while they try to use your software.
> 
> BR


___
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


Browser widget android local file problem

2017-08-24 Thread Alan via use-livecode
Am having a problem loading a local file that displays a Google map on the 
Android emulator. LC 8.1.6.

I was also having a problem with local HTML files in general, but got that 
going. Using the same method for a dynamically created map document, located in 
the specialfolderpath("documents") folder doesn't seem to work. See below for 
code that doesn't work followed by code that works.

1. Code that doesn't work is (using a file from the "documents" specialFolder):
---
   put specialFolderPath("documents") & slash & "MAP.html" into tMapFile
-- tMapFile = /data/data/com.scruffmonkey.echidnaCSI/files/MAP.html   
-- Why is the path /data/data/...  and not /data/app/...  as in the next 
example?
   if the platform contains "android" then
set the url of widget "myMap" to tMapFile
   else
put fileConvertToFileURL(tMapFile) into tURL
set the url of widget "myMap" to (tURL)
   end if
---


2. While code that works is (using a file from the resources folder):
---
  put specialFolderPath("resources") & "/data/fun_facts.html" into tFile
 -- tFile = 
/data/app/com.scruffmonkey.echidnaCSI-2/base.apk/data/fun_facts.html
  if the platform contains "android" then
 set the url of widget "infoscroll" to (tFile)
  else
 put fileConvertToFileURL(tFile) into tURL
 set the url of widget "infoscroll" to (tURL)
  end if
---


Any ideas why there's a difference between the resources and documents 
specialFolderPaths?

Why does the "documents" specialFolderPath here start with /data/data/  and the 
resources one start with /data/app/  ??

I've also tried setting the HTMLText of the widget but that also doesn't seem 
to work.

Help please! :-)

cheers

Alan
___
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: Browser widget android local file problem

2017-09-04 Thread Alan via use-livecode
Hi Jacque, Jonathan

Thanks for the replies and questions and sorry for the slow reply!. They did 
lead me to question whether my file was being created correctly - it wasn't. 
There also seems to be a difference in the way html files are loaded. Anyway, 
it works now.

Thanks for the info about the documents folder. That prompted me to look into 
the Android system structure so all a learning experience. Now getting up to 
speed with monitoring + debugging on the device + simulators. Whew.


Now I just came across another interesting problem - after bringing up the 
running apps on Android and swiping to remove one from memory, now when I go to 
run the same app again, it comes up with a black (blank) screen but "appears" 
to be running. Looking at logcat, I see that there's been an error with 
navbar.lcb, log as follows:


09-04 16:55:53.623: I/LiveCode(25535): errorDialog 863,0,0,runtime
09-04 16:55:53.623: I/LiveCode(25535): 864,0,0,error exporting foreign '' value: numeric overflow
09-04 16:55:53.623: I/LiveCode(25535): 865,0,0,navbar.lcb
09-04 16:55:53.623: I/LiveCode(25535): 866,0,0,812
09-04 16:55:53.623: I/LiveCode(25535): Error: An error occurred on line: 0
09-04 16:55:53.623: I/LiveCode(25535): 863,0,0,runtime
09-04 16:55:53.623: I/LiveCode(25535): 864,0,0,error exporting foreign '' value: numeric overflow
09-04 16:55:53.623: I/LiveCode(25535): 865,0,0,navbar.lcb
09-04 16:55:53.623: I/LiveCode(25535): 866,0,0,812

Wonder if anyone else has seen this and presumably it should be reported as a 
bug?

So many device differences are such a PITA.

Thanks again for your help!

cheers

Alan


> On 25 Aug 2017, at 12:27 am,   wrote:
> 
> 
> Hi Alan - setting the htmltext of the widget works fine for me. My map data 
> comes from Bing. What is going wrong when you do that?



> On 25 Aug 2017, at 6:52 am, "J. Landman Gay" wrote:
> 
> 
> Like on a desktop machine, the folders are located in different places 
> in the file hierarchy. These are actually virtual folders; they don't 
> really exist since the whole thing is done in memory.
> 
> If you aren't able to get results from the documents folder, I'd have 
> the script check first to make sure the file is really there.
> 
> 


___
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


Mobile - Get image from library with EXIF data?

2018-05-14 Thread Alan via use-livecode
Has anyone come up with a mobile cross-platform solution for getting an image 
from a mobile photo library including the EXIF metadata?

It seems there were a couple of possibilities:

Android - something called SD-Test for getting files from an SD card;

iOS - mergAV can apparently get an image with some metadata intact?

Has anyone done this successfully?

cheers

Alan
___
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


Posting to Facebook?

2018-05-14 Thread Alan via use-livecode
I couldn't find Andre's Facebook Lib on his site - has anyone sorted out 
POSTing images etc to FB?

cheers

Alan
___
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: PDF

2018-05-14 Thread Alan via use-livecode
Enjoying the discussion and your well thought out views Richard!

FWIW, I'm pretty sure a friend of mine made a system for conversion of existing 
pubs to EPubs a few years back. And I think it was all (mostly?) done in LC. 
The system is described here (unfortunately only in German currently):

https://www.appendx.de/en/project_18.html

And yes, we do need to continually improve, despite the pain - just ask Kodak. 
;-)

cheers

Alan

---
Richard Gaskin wrote:
> Ralph DiMola wrote:
> 
>> Richard I agree. I have customers that we are nudging toward EPubs for
>> the reasons you've enumerated but when they see the amount of work
>> involved they fall back to the "Well our employees are using MSWord
>> and just PDF them.
> 
> Yes, updating tooling is key for adoption.
> 
> 
>> Tagging them is just too much work". The only ones we're having
>> success with are when they compose in xml.
> 
> This is curious to me, but perhaps I've been overly influenced by the 
> ease with which LC can translate binary formatting and styling into its 
> htmlText, making it then relatively straightforward to convert to common 
> HTML.
> 
> If other tools are behind the times, maybe LiveCode has an opportunity 
> to be among the saviors of reading in the 21st century, providing a 
> foundation for easily converting things like RTF and even (with Curry's 
> great WordLib) xlxs and odoc into EPubs.
> 
> As much as I like that vision, it seems odd to me that other tools like 
> office suites can output HTML, but not in a form that works with EPub 
> with less effort than we'd need in LC.
> 
> 
>> I have seen crazy PDFs with the text stream down the left side of a
>> paragraph and then down the other side. Edited PDFs are a nightmare.
>> Don't even get me started with fonts.
> 
> Even just copying from a PDF can yield wildly unpredictable results when 
> pasted into any other app.  It's a rare day when I can copy content from 
> a PDF into an email and not have to remove a mystifyingly large number 
> of spaces and other characters not at all visible in the rendered PDF 
> within its specialized viewer app.
> 
> 
>> I am working on a LC epub reader but the browser widget does not
>> always play nice with the generated html from InDesign. I'm working
>> now on figuring out just what LC is choking on. I also don't see a way
>> to move to the chapter 2 when you slide to the end of chapter 1. We
>> are falling back to chapter selections via sidebars or pop-ups or...
> 
> Very exciting to hear you're working on this.  If you're in a position 
> to release at least the core EPub display code as open source please 
> feel free to call or write if I may be of help.
> 
> -- 
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  
>  ambassa...@fourthworld.comhttp://www.FourthWorld.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


browser widget - back|reload menu?

2018-06-17 Thread Alan via use-livecode
I'm using the browser widget with some embedded javascript for Google maps and 
am wanting to handle control key sequences. Unfortunately it looks like the 
browser widget has an embedded control-key menu with "Back" and "Reload" menu 
options.

Is there any way to override this menu display?

Or am I missing something simple here?

Thanks for any pointers!

cheers

Alan
___
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


Access image EXIF info on mobile

2018-05-31 Thread Alan via use-livecode
I have made a test stack to access EXIF information on both Android and iOS and 
submitted it under bug 21322:

https://quality.livecode.com/show_bug.cgi?id=21322

There is a problem (at least on the simulator) that causes a crash currently, 
hence my bug report. Hopefully the sample stack is useful for others and if 
anyone could test it on an iOS (or Android) device could you please comment on 
the bug report as to success or failure? Thanks!

cheers

Alan

___
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: Access image EXIF info on mobile

2018-06-01 Thread Alan via use-livecode
Hi Andrew


Thanks a lot for testing on your device with very interesting results! I saw 
your detailed addition to the bug report - that's great and I hope that it 
helps Monte discover and rectify the issue.


On Android it appears that just using mobilePickPhoto "library" seems to work 
ok and returns an image from which EXIF data can be extracted - though my 
testing has been very limited so far!


Thanks again for the help, appreciate it!


cheers


Alan

---

From: and...@midwestcoastmedia.com
To: use-livecode@lists.runrev.com
Subject: Re: Access image EXIF info on mobile
Message-ID:
<20180601151357.horde.gt5bwka9jlfwlx4vvwvr...@ua850258.serversignin.com>

Didn't bother to test on Android since mergAV isn't supported, but I
can confirm the crashes on simulated devices. When tested on physical
devices, the stack never crashed but didn't always work depending on
the source of the image. Even images from the same device didn't
always work, which makes me think there was a change somewhere in how
Apple wrapped the metadata. For instance: photo taken today didn't
show EXIF, but photo taken on same phone 6 months ago does (don't
remember what OS that would have been, but almost certain it was
different from current version).

I updated your bug report with my findings from 2 real and 2 simulated
devices using your test stack. One caveat is my simulated devices run
10.2 but my physical devices are running 11.x

--Andrew Bell


> Date: Fri, 1 Jun 2018 00:50:29 +
> From: Alan 
> To: "use-livecode@lists.runrev.com" 
> Subject: Access image EXIF info on mobile
> Message-ID:
>
> 
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have made a test stack to access EXIF information on both Android
> and iOS and submitted it under bug 21322:
>
> https://quality.livecode.com/show_bug.cgi?id=21322
>
> There is a problem (at least on the simulator) that causes a crash
> currently, hence my bug report. Hopefully the sample stack is useful
> for others and if anyone could test it on an iOS (or Android) device
> could you please comment on the bug report as to success or failure?
> Thanks!
>
> cheers
>
> Alan

___
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


Bug 17062 - Browser Widget: Context menu is not under script control

2018-06-05 Thread Alan via use-livecode
Can someone at LC please bump Bug 17062 and take a look at it? Would be great 
to be able to pass right-clicks into the browser widget rather than 
automatically popping up the "Back|Reload" menu.


https://quality.livecode.com/show_bug.cgi?id=17228


cheers

Alan
___
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


Machine Learning in LC?

2018-06-26 Thread Alan via use-livecode
Has anyone integrated any machine learning models in LiveCode at all? Anyone 
experimenting with it?

Just considering having a play with TensorFlow.js and seeing if it'll work... 
Any hints/ideas welcome!

cheers

Alan
___
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: multiple cameraControls possible?

2018-01-30 Thread Alan via use-livecode
Hi Sean

Thanks for the feedback - ideally it's for all 3 but have been testing it on 
iOS.

As I said, I can create 2 controls, though only 1 of them is "active" - i.e. 
updating - at one time. As soon as I delete the 2nd control, the 1st one again 
becomes active. This is the same whether I use a different camera (front/back) 
for each or not.

Wonder if Monte has any ideas about this? Does mergAV allow more than 1 control 
active at a time?

cheers

Alan

> On 30 Jan 2018, at 9:30 pm, <s...@pidigital.co.uk> wrote:
> 
> Hi Alan. Is this for iOS, Android or desktop? Based on the dev api for both
> iOS and Roid it should be possible to access both cameras simultaneously.
> It doesn't appear to be so simple with external cameras. Desktop is a
> different story. Either way, cameraControl would need modifying to enable
> it.
> 
> Sean Cole
> *Pi Digital Productions Ltd*
> www.pidigital.co.uk
> +44(1634)402193
> +44(7702)116447
> 'Don't try to think outside the box. Just remember the truth: There is no
> box!'
> 'For then you realise it is not the box you are trying to look outside of,
> but it is yourself!'
> 
> eMail Ts & Cs <http://pidigital.co.uk/emailTCs.rtf>   Pi Digital
> Productions Ltd is a UK registered limited company, no. 5255609
> 
> On 30 January 2018 at 01:21, Alan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I've been testing out the cameraControl a bit more and trying to make more
>> than 1 at a time. It is possible but only seems to have one of them active
>> at a time (i.e. updating). Though if the second one is then deleted, the
>> first one becomes active again.
>> 
>> Is it possible to have more than 1 active? i.e. to have both front + rear
>> cameras updating?
>> 
>> Additionally, I have an external (thermal) camera and would like to use
>> that, but it didn't appear in the devices available to the cameraControl. I
>> was assuming it should - is this a bug or just expected? Or do I need to
>> allow access to the external camera for my app perhaps?
>> 
>> Thanks for any help!
>> 
>> cheers
>> 
>> Alan


___
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: Treeview widget - setting scroll?

2018-01-30 Thread Alan via use-livecode
Hi Brian

Thanks for the info. I was mostly interested in setting the scroll for using on 
mobile. Of course on further investigation I also realise we don't have 
something like the "formattedHeight" of the widget so pretty hard to make an 
adaptable mobile scroller for it. Or am I missing something basic?

Anyone used the treeview on mobile yet? Can we use a normal mobile scroller 
with it?

cheers

Alan

> On 30 Jan 2018, at 9:30 pm, <br...@milby7.com> wrote:
> 
> From: Brian Milby <br...@milby7.com>
> To: How to use LiveCode <use-livecode@lists.runrev.com>
> Cc: Alan <alanstenho...@hotmail.com>
> Subject: Re: Treeview widget - setting scroll?
> Message-ID:
>   <ca+yhkrzpqtt3ubwe-2i1uwcccdsusyu-zovse2y63xdvwtq...@mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
> 
> You do not have the ability to get/set a position by line number/position
> percentage but you can get/set the selected line using a path (see the
> dictionary for specifics). It is probably possible to extend the widget to
> get a position, setting would also be possible I imagine.
> On Sun, Jan 28, 2018 at 10:23 PM Alan via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Is it possible to get and/or set the scroll of a treeview widget?
>> 
>> It doesn't look like it, but perhaps someone has a work-around? Or is
>> there some hidden property perhaps?
>> 
>> Thanks for any pointers!
>> 
>> cheers
>> 
>> Alan


___
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


Treeview widget - setting scroll?

2018-01-28 Thread Alan via use-livecode
Is it possible to get and/or set the scroll of a treeview widget?

It doesn't look like it, but perhaps someone has a work-around? Or is there 
some hidden property perhaps?

Thanks for any pointers!

cheers

Alan
___
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


multiple cameraControls possible?

2018-01-29 Thread Alan via use-livecode
I've been testing out the cameraControl a bit more and trying to make more than 
1 at a time. It is possible but only seems to have one of them active at a time 
(i.e. updating). Though if the second one is then deleted, the first one 
becomes active again.

Is it possible to have more than 1 active? i.e. to have both front + rear 
cameras updating?

Additionally, I have an external (thermal) camera and would like to use that, 
but it didn't appear in the devices available to the cameraControl. I was 
assuming it should - is this a bug or just expected? Or do I need to allow 
access to the external camera for my app perhaps?

Thanks for any help!

cheers

Alan


___
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


Camera on iPad error?

2018-07-30 Thread Alan via use-livecode
I've submitted an app update to the Apple store and have been rejected with the 
following error:

"We discovered one or more bugs in your app when reviewed on iPad running iOS 
11.4.1 on Wi-Fi connected to an IPv6 network.

Specifically, when tapping on the camera button, no further action took place."

I'm using mobilePickPhoto to call up the camera with LC 9.0 - has anyone else 
seen this problem?

cheers

Alan



___
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: Camera on iPad error?

2018-07-31 Thread Alan via use-livecode
No, nothing to do with sockets from me. Any other ideas? I'm presuming that 
WiFi + IP6 isn't relevant to camera operation.

cheers

Alan

> On 31 Jul 2018, at 3:00 am, Monte via use-livecode 
>  wrote:
> 
> Very odd that it would be IPv6 related. Are you doing anything with sockets?
> 
>> On 31 Jul 2018, at 10:22 am, Alan via use-livecode 
>>  wrote:
>> 
>> I've submitted an app update to the Apple store and have been rejected with 
>> the following error:
>> 
>> "We discovered one or more bugs in your app when reviewed on iPad running 
>> iOS 11.4.1 on Wi-Fi connected to an IPv6 network.
>> 
>> Specifically, when tapping on the camera button, no further action took 
>> place."
>> 
>> I'm using mobilePickPhoto to call up the camera with LC 9.0 - has anyone 
>> else seen this problem?
>> 
>> cheers
>> 
>> Alan


___
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


mergButton - transparent image possible?

2018-09-06 Thread Alan via use-livecode
Is it possible to set the transparency of a background (or foreground) image 
for a mergButton button?

Alternatively, are transparency settings used if using a PNG (if that's 
possible)?

I see that we can set the transparency of the background, border and other 
colours.

Monte or anyone else tried this?

cheers

Alan
___
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 Can't Find Path to Web folder

2018-04-08 Thread Alan via use-livecode
I find that on Android you don't use the "file:" prefix - try:

set the url of widget "about" to (specialFolderPath("resources") & 
"/web/index.html")

HTH

cheers

Alan

> On 8 Apr 2018, at 7:30 pm, Sannyasin Brahmanathaswami  
> wrote:
> 
> 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://"  & 
> "/modules/lexicon/web/index.html")
> 
> else
> # works on desktop
> 
>put specialFolderPath("resources") into tRoot
>set the URL of widget "Browser" to ( "file://"  & "/web/index.html")
> end if
> 
> ?? 
> 
> BR


___
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


mobile location question

2018-10-14 Thread Alan via use-livecode
Hi there

Can someone point me in the direction of the LC source code on Github that 
contains the mobile location-related code?

Wondering what is currently used for the properties:  desiredAccuracy  &  
distanceFilter

Thanks for any pointers! :-)

cheers

Alan


___
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: finding location on mobile device

2018-11-13 Thread Alan via use-livecode
Note that you may not get a value immediately from your location services 
subsystem so if you find there's nothing there, then try starting up the sensor 
in openCard or openStack, wait some time and then use the button to get the 
current location.

Hope that makes sense (and works for you).

Or are you having problems feeding it in to the map widget?

cheers

Alan

> On 14 Nov 2018, at 7:52 am, Devin Asay via 
>  wrote:
> 
> 
> This has worked for me in the past, but I haven?t tried it in quite some time:
> 
> mobileStartTrackingSensor "location", false
> put mobileCurrentLocation() into tLocArray
> mobileStopTrackingSensor "location"
> put "lat: " & tLocArray["latitude"] & cr & "long: " & tLocArray["longitude"] 
> into fld "report"
> 
> Devin
> 
>> On Nov 13, 2018, at 1:06 PM, Mike for GDC via use-livecode 
>>  wrote:
>> 
>> I am trying to find my current lat/long on my android device.  I have played
>> around with multiple options including "mobileCurrentLocation" and others.
>> I have not been able to find an example of code that does it and works.
>> What I want to do is push a button, have the lat/long displayed so as I can
>> then "feed" it into a map widget for display.  Does anyone have an example
>> of code that does just that?  Thanks.  Mike


___
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: preOpenCard not running on iPhoneX simulator

2018-12-16 Thread Alan via use-livecode
Hi Ralph

Thanks for the suggestion, and yes, you were right. Somehow I was still 
expecting openCard messages etc to be sent through - perhaps I was just getting 
confused as to why it runs ok on all phone simulators except for the iPhoneX 
sim.

Anyway, thanks for the response, it's always good to have someone else suggest 
the obvious thing that we're missing! :-)

cheers

Alan :-)


> On 17 Dec 2018, at 12:20 pm, Ralph DiMola  wrote:
> 
> Alan,
> 
> This is usually caused by a failure in the preopenstack script. Try some
> answer's in the preopenstack handler.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
> Of Alan via use-livecode
> Sent: Friday, December 14, 2018 7:14 AM
> To: use-livecode@lists.runrev.com
> Cc: Alan
> Subject: preOpenCard not running on iPhoneX simulator 
> 
> I'm having a strange issue with a mobile app - on the 11.2 simulator a
> preOpenCard handler doesn't seem to run on the iPhoneX simulator but does
> with other devices.
> 
> What might be stopping this handler from running on the X simulator but not
> on others? Any ideas?
> 
> Strangely, when I make a barebones test stack with only a preOpenCard
> handler, it runs ok on the X simulator. So that points to something in my
> original stack... but  what can stop the preOpenCard message from being
> sent??
> 
> cheers
> 
> Alan
> ___
> 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


preOpenCard not running on iPhoneX simulator

2018-12-14 Thread Alan via use-livecode
I'm having a strange issue with a mobile app - on the 11.2 simulator a 
preOpenCard handler doesn't seem to run on the iPhoneX simulator but does with 
other devices.

What might be stopping this handler from running on the X simulator but not on 
others? Any ideas?

Strangely, when I make a barebones test stack with only a preOpenCard handler, 
it runs ok on the X simulator. So that points to something in my original 
stack... but  what can stop the preOpenCard message from being sent??

cheers

Alan
___
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: Detecting full Mobile Sensor activation

2020-04-25 Thread Alan via use-livecode
Hi again Graham

Another option is to indicate visually the uncertainty of the location reading 
on the map display as some apps do, e,g. with a translucent circle whose radius 
indicates the horizontal (in)accuracy.

cheers

Alan

> On 26 Apr 2020, at 10:17 am, Alan Stenhouse  wrote:
> 
> Hi Graham
> 
> Some ideas, from experience:
> 
> 1. Start your sensor on openStack or as soon as possible.
> 
> 2. Ignore locationChanged messages with empty location or if "horizontal 
> accuracy" is outside a threshold of x metres.
> 
> 3. Just set a flag or other mechanism when you want to start and stop 
> tracking which indicates to your locationChanged handler to record or stop 
> recording the track.
> 
> Hopefully that sounds reasonable?
> 
> cheers
> 
> Alan
> 
>> On Sat, 25 Apr 2020 14:07:01,Graham Samuel > > wrote:
>> 
>> 
>> Typical fitness apps (such as iCardio by FitDigits)  can read various 
>> sensors including a Heart Rate Monitor via Bluetooth, and one?s location via 
>> inbuilt GPS. When you start an activity like a run or a workout, the app 
>> goes through an acquisition phase, and won?t start recording until the 
>> sensors are functioning. This is made clear to the user by a display.
>> 
>> I want to do this in my LC iOS app, specifically for the GPS. I know how to 
>> start the location function on the device and I know how to handle the 
>> position via ?locationChanged' and/or ?mobileCurrentLocation', and these 
>> work. The big problem is at the start of such a sequence. I can use 
>> 'mobileStartTracking Sensor ?location? ? to get going, but experience shows 
>> that this takes an unpredictable amount of time, sometimes of the order of 
>> seconds. You would think that the locationChanged messages wouldn?t start 
>> firing until the start tracking process had done its job, but it seems this 
>> is not so, and nonsense locations can appear at the beginning of the 
>> sequence. At least that?s my experience.
>> 
>> I am loth to use a loop to see if the tracking is really started and legit, 
>> and anyhow this would be problematical if my app was being inundated with 
>> ?locationChanged' messages while the loop is running. 
>> 
>> Has anyone any experience of this issue? As usual, I feel I?m missing 
>> something. Perhaps the ?trackingError? message might help, but I don?t see 
>> how.
>> 
>> Graham
> 

___
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