Re: Referencing Livecode

2022-06-20 Thread Alan Stenhouse via use-livecode
Hi David

In a couple of my publications, I described developing apps with Livecode and 
referred to www.livecode.org and www.livecode.com, but didn't include anything 
in the references as there was nothing (AFAICS at that time) that would satisfy 
scientific publication standards.

See: https://www.sciencedirect.com/science/article/pii/S2351989420309173
and
https://www.sciencedirect.com/science/article/pii/S2351989421001761

HTH

cheers

Alan


> On 18 Jun 2022, at 1:30 am, David V Glasgow wrote:
> 
>> On 16 Jun 2022, at 9:08 pm, J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> Is there a reason not to use the LC site URL, either alone or in addition to 
>> the Wikipedia one?
> 
> The https://livecode.com landing page is rather sparse, and focussed on 
> drawing customers in rather than conveying anything about text processing, or 
> obvious links to information on text processing.  No criticism of that at 
> all.  It?s a commercial site.  
> 
> Wiki page has the disadvantage of a banner warning about link rot, but the 
> advantage of lots of information presented in a more academic and neutral 
> style.
> 
> 
>> 
>> Re: the errors, they look like examples of functions that would return 
>> "false" but I haven't seen them in context.
>> --
> 
> They do, don?t they.  From memory, that wasn?t the context though.  
> 
> Cheers
> 
> David G


___
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: Audio Control on Mobile?

2022-05-15 Thread Alan Stenhouse via use-livecode
Hi Dan,

Check out mobilePlaySoundOnChannel in the dictionary and the related commands 
linked to it.

Don't think there's a player command for mobile, though I may have missed it...!

HTH

cheers,

Alan 

> On 15 May 2022, at 1:30 am, use-livecode-requ...@lists.runrev.com wrote:
> 
> Date: Fri, 13 May 2022 19:40:11 +
> From: Dan Friedman 
> To: How to use LiveCode 
> Subject: Audio Control on Mobile?
> Message-ID: <395fac0d-aca3-463e-ab3a-b932d222c...@clearvisiontech.com>
> Content-Type: text/plain; charset="utf-8"
> 
> Hello!   On desktop, there is the player object which is great!   However, it 
> doesn't work on Mobile.  Is there a way to deal with an audio file on mobile 
> (Android and iOS)?   Here's what I need to do:
> 
> - Load an audio file from a server
> - Play the file
> - Pause file
> - Set the cursor (where to play from or jump to)
> - Know when the end of file is reached
> - length of audio file
> - current play position
> - file state (isPlaying or isPaused)
> 
> Thank you in advance!
> 
> -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: use-livecode Digest, Vol 222, Issue 27

2022-03-18 Thread Alan Stenhouse via use-livecode
Yes, you should textencode() to UTF when storing and textdecode() when reading 
- at least doing that on mobile worked for me.

cheers

Alan

> On 19 Mar 2022, at 8:01 am, Paul Dupuis via 
> use-livecode-requ...@lists.runrev.com wrote:
> 
> On 3/18/2022 12:18 PM, Dan Friedman via use-livecode wrote:
>> I can't be the first to bring this up, so sorry if this has been asked 
>> already...
>> 
>> Is there a current solution for Emojis in text?  On a mobile device, in a 
>> native field, a user enters a emoji (no method to stop them that I can 
>> find).  I save that text somewhere like a database.  When I load it back 
>> (into a LC field for display), it appears as a question mark.   What up?   
>> Anyone have knowledge on this topic?   Is there a useEmojis property I don't 
>> know about?
>> 
> 
> It probably depends on 2 things:
> 
> 1) If the app the Emojis are created in is creating them as Unicode 
> Emojis or as images. If they are created as images, then they are 
> probably not getting transferred to the database correctly. If they are 
> Unicode, also make sure they are not being lost in the upload to the 
> database - the database encoding needs to support some Unicode encoding 
> like UFT8
> 
> 2) If the database has the correct data, then when loading it into a 
> LiveCode field you probably need to textDecode (see dictionary) the data 
> from UTF8 to LiveCode's native (UTF16) text.
> 
> See https://unicode.org/emoji/charts/full-emoji-list.html as well


___
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: A question/survey of sorts for users of Navigator

2022-01-04 Thread Alan Stenhouse via use-livecode
Sounds interesting Geoff. The ability to customise your own actions on objects 
would be great - I think we all get annoyed with some of the clunkiness of 
repeated actions (and no doubt we don't use all the existing capabilities of 
LC..), so your addition to Navigator sounds very worthwhile!

cheers
Alan

> On 5 Jan 2022, at 3:30 am, Geoff Canyon wrote:
> 
> After twenty years, I still use Navigator every time I open LiveCode, and
> still think of new features.
> 
> One of the very first things I put in Navigator was to make double-clicking
> a control open the script for that object, because I edit scripts far more
> often than I set properties.
> 
> There are now many ways to do other things with controls, and you can
> configure double-click to do something else if you want.
> 
> But today, I was putting label fields onto a card and editing the contents
> of them (also one of the first things I set up in Navigator, because it
> bugged me to have to use the properties palette, and the second tab of it
> at that, to edit the contents of a field) and it occurred to me: I almost
> never put a script in a label field, but I edit their contents all the time.
> 
> So: what if you could easily configure Navigator to do different things by
> default when you double-click? Double-click a button: edit script.
> Double-click a field with "label" in the name, edit its contents.
> Double-click a set of controls: open alignment for them. Double-click a
> freehand graphic, edit its points. Not sure about that last one, and maybe
> the label example is the only real use case.
> 
> But let me know if this is something that would be useful.
> 
> gc


___
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: Ideas on iOS GPS tracking needed

2020-11-03 Thread Alan Stenhouse via use-livecode
Hi Graham

Are you checking the horizontal accuracy of each reading? (It's part of the 
array of data with your lat-longs, as well as speed, etc - though not on every 
phone). 

If not, try that and see if the anomalous readings are hugely out. From my 
experience, that's normally the case. If so, the easiest thing is to drop them 
in the short term, unless you get too many and then you may need to be a bit 
fancier. If you do, would love to hear the solution that you come up with.

HTH, cheers

Alan

> On 4 Nov 2020, at 3:30 am, Graham Samuel  wrote:
> 
> From: Graham Samuel 
> To: How to use LiveCode 
> Subject: Ideas on iOS GPS tracking needed
> Message-ID: <6c855814-1850-4975-b185-1731efcd6...@mac.com>
> Content-Type: text/plain; charset=utf-8
> 
> Sorry this is a bit long.
> 
> For a long time I?ve been tinkering with an app that uses the GPS on iPhones 
> to show how far ?as the crow flies? the user is from some base point, which 
> is set before the journey starts. It?s intended for walkers and cyclists, and 
> I was using a beta version in the first French lockdown, which forbade one 
> walking more than 1km from one?s house. I put the completion of this aside, 
> but now we?re in the second French lockdown and it looks worth finishing - 
> but I have some issues which I believe are not just down to my bad coding 
> (though of course that?s more than possible), and I wonder if anyone else has 
> thought about this stuff.
> 
> The basic idea is extremely simple, as you can imagine, and it wasn?t hard to 
> code. The app keeps working out the point-to-point distance from the base and 
> tests it against the permitted limit. If the limit is exceeded, it sounds an 
> alarm. If the user goes back within the limit, the alarm stops. Everything 
> else is just cosmetic, really.
> 
> The issue I have is that in every journey of say 40 minutes to an hour, the 
> iPhone appears to generate a few ?bad? GPS readings. When I say bad, I mean 
> way beyond the published accuracy of the GPS (which varies up to about 70m). 
> Sometimes the GPS wants to tell me that I?ve walked half a kilometer in three 
> seconds!
> 
> I have analysed a lot of data (.gpx files) from other apps for walkers, 
> drivers and cyclists and I don?t see such glaring anomalies; and using such 
> apps on my main test phone (an iPhone X), I don?t see these strange readings 
> affecting the data.
> 
> Assuming this isn?t just a stupid coding error on my part (OK, a risky 
> assumption), I need to find a solution, either by increasing the accuracy of 
> the readings, or by finding the anomalies as they occur and eliminating them. 
> I know no way of doing the first, and although I have ideas for the second 
> (check apparent speed, for example), none seems foolproof. As the app works 
> in real time, a retroactive curve-fitting solution is no good for me, even if 
> my maths was up to coding it (Kalman filter, anyone?).
> 
> Has anyone tried anything like this, and if so, did you find any anomalies in 
> the data, and how did you cope with them?
> 
> I?d be grateful for any ideas.
> 
> 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


get URL results in tsneterr(6) on Android, previously worked ok

2020-06-28 Thread Alan Stenhouse via use-livecode
Hi all

Am re-building an app that's been running fine for over 2 years now and when 
attempting to get a URL I always get the error "tsneterr: (6)" contained in it 
with "could not resolve host" as the result.

When I try the same code in the IDE it works as expected.

I didn't previously include tsnet in my builds and I get this error whether I 
do or do not include it in my build for Android now. 

I do have "internet" selected in Application Permissions in the Standalone 
Settings.

I also build up my httpHeaders manually to include username & pw and these are 
still valid.

I recall previous discussions that were maybe similar to this issue but 
couldn't find anything in the forums/google/etc so far.

Any hints or other pointers welcome - thanks!

The code is:
---
put "https://" into tPost
put "Authorization: Basic" &"userName: " & CR & 
"password: " into tHeaders
set the httpHeaders to tHeaders
get URL (tPost)
---

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: LC9.6 Android EXIF image data issue

2020-05-14 Thread Alan Stenhouse via use-livecode
Thanks Mark and Monte for the info.

Had already stopped using the width/height specs and for photos from the 
library we had been getting EXIF info and still do in many cases (I think - 
more testing needed!), but as we can't do anything about what the OS gives us, 
I'll just slightly change the message for the user to inform them.

Thanks again, cheers

Alan

> On14 May 2020 09:16:20, Mark Waddingham  wrote:
> 
> iOS definitely strips EXIF data in some cases - perhaps it is just from 
> photos taken with the camera or maybe it varies slightly with OS 
> version.
> 
> The Android case you are observing is probably because the EXIF data is 
> being stripped also.
> 
> Assuming you don't use a width/height argument on mobilePickPhoto then 
> we just return the data which we are given with no processing at all - 
> so you are getting what the OS wants you to get.
> 
> It might be that Samsung's camera app is a little more security 
> conscious than other Android variants :(
> 
> Warmest Regards,
> 
> Mark.

___
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: LC9.6 Android EXIF image data issue

2020-05-13 Thread Alan Stenhouse via use-livecode
Hi Monte

Thanks for the info, though that is bad news. It had previously come through on 
iOS ok - when picking a photo from the library, and also on Android AFAIK.

Do we have any way of getting EXIF data from an image picked from an image 
library using MobilePickPhoto?

Thanks again for the info!

cheers

Alan

> On 13 May 2020 12:03:41 +1000,Monte Goulding wrote:
> 
> EXIF data from the returned photo in mobilePickPhoto probably shouldn?t be 
> relied upon. On iOS it definitely won?t be there. On Android it definitely 
> won?t be there if calling mobilePickPhoto with width and height parameters 
> but if those parameters aren?t used it might be there (depending on what the 
> camera app does).
> 
> Cheers
> 
> Monte
> 
>> On 13 May 2020, at 11:39 am, Alan Stenhouse via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> There seems to be an issue with getting EXIF data from images using 
>> mobilePickPhoto on Android (well, at least new Samsung mobile phones).
>> 
>> I *think* this is a new bug with LC 9.6, but as I don't have a relevant 
>> phone to test with, it's sorta difficult to check further. Particularly as 
>> we couldn't even use mobilePickPhoto on these phones prior to 9.6!
>> 
>> Has anyone else seen this at all? If it's a new issue then it'd be great to 
>> get it resolved in the 9.6 cycle.

___
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


LC9.6 Android EXIF image data issue

2020-05-12 Thread Alan Stenhouse via use-livecode
There seems to be an issue with getting EXIF data from images using 
mobilePickPhoto on Android (well, at least new Samsung mobile phones).

I *think* this is a new bug with LC 9.6, but as I don't have a relevant phone 
to test with, it's sorta difficult to check further. Particularly as we 
couldn't even use mobilePickPhoto on these phones prior to 9.6!

Has anyone else seen this at all? If it's a new issue then it'd be great to get 
it resolved in the 9.6 cycle.

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: use-livecode Digest, Vol 200, Issue 5

2020-05-04 Thread Alan Stenhouse via use-livecode
Hi Graham

Have you tried it walking around outside in varying locations? Have you tried 
different devices and/or OS versions? You could try sharing it with a friend 
using Diawi or similar and see what they get.

Also try restarting your phone to see if that helps.

As you move around the countryside, you'll occasionally get some inaccurate 
reading (depending on surroundings) so you may decide it's best to store, but 
ignore, occasional inaccuracies and just use some form of interpolation.

Looking forward to even better location data in the future - it's constantly 
improving and most new phones will give you 3-5m accuracy in the right 
conditions. Perhaps the newest phones are already even better?

Here are a few links with more info:

"assessment of the gps accuracy of mobile devices":
http://blog.cartong.org/wordpress/wp-content/uploads/2019/03/Assessment_GPS_Accuracy_Mobile_Devices.pdf

"Smartphone GPS accuracy study in an urban environment":
https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0219890

"Why GPS makes distances bigger than they are":
https://www.tandfonline.com/doi/full/10.1080/13658816.2015.1086924

though those may not be immediately helpful to you. :-)

Will look forward to hearing what you come up with!

Good luck!

cheers

Alan


> On May 4, 2020, at 5:07 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> ?I?m using GPS on iPhone using the various commands and functions available 
> in LC. Most of this works, but I am having difficulty with the quantity 
> ?horizontal accuracy?. This can be queried via an array which is returned 
> when mobileCurrentLocation() is executed. 
> 
> Looking at other iOS apps that use GPS and allow one to examine their data, I 
> find that in my part of the world, accuracy for them is of the order of 5 
> metres: but when I query it using LC I get much higher numbers, indeed some 
> of them look like nonsense, being hundreds of metres!
> 
> I am aware that it takes time for a GPS signal to settle down after 
> mobileStartTrackingSensor ?location? has been called, but even if I script 
> the examination of accuracy to wait for it to settle down (I look for a run 
> of similar or identical readings against a ?reasonable? criterion, such as 5 
> metres), it still sometimes settles on very large numbers comparatively 
> speaking, for example it might stabilise at 65 metres. With that level of 
> inaccuracy any cumulative use, as in working out the number of kilometres in 
> a trip, would not be reliable.
> 
> I wonder if my expectation is wrong, or if there is something different about 
> LC?s encapsulation of these iOS outputs, or if there is some other 
> explanation.
> 
> In the short term, I?m simply going to have to relax my search for a 
> reasonable accuracy of the order of 5 metres, and just go for the first run 
> of stable readings. But I would love to hear any further insight from anyone 
> who?s already tried it.
> 
> 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


Re: Detecting full Mobile Sensor activation

2020-04-26 Thread Alan Stenhouse via use-livecode
Hi Graham

So, how do you define a "meaningful" GPS signal?

The GPS data you'll receive from locationChanged messages may have nothing for 
1-n messages at the start, followed by an increasingly accurate number of 
messages (as measured by the "horizontal accuracy" and/or "vertical accuracy" 
data items). The other apps will be utilising these to determine a "meaningful" 
signal. You can define that however you like, of course! :-)

Another thing you'll need to deal with is intermittent GPS signal which can 
happen for a number of reasons.

Anyway, good luck. LC can do the sensor stuff well I think, I'ill look forward 
to seeing what you come up with! 

cheers

Alan

> On 26 Apr 2020, at 7:11 pm, Graham Samuel  wrote:
> 
> Alan, thanks for your two messages. II’m doing most of what you suggest (not 
> using accuracy so far, but the prudent person probably should do!), but 
> nevertheless I would like to emulate my fitness app example. I have apps that 
> positively know when they have acquired a meaningful GPS signal, whereas the 
> methods i’m using contain an element of chance or guesswork. I want to 
> completely eliminate that.
> 
> In practical terms, I can’t start the sensor until the user needs it, because 
> of battery drain - you will find this in most trekking and fitness apps - one 
> is more or less confined to a button ‘Start’ or something similar. At that 
> point, my ideal would be to show the user that I’ve started the sensor 
> acquisition and tell them when it’s succeeded or failed. I feel it has to be 
> possible, but perhaps not with LC.
> 
> Graham
> 
> 
>> On 26 Apr 2020, at 02:47, 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


Re: Detecting full Mobile Sensor activation

2020-04-25 Thread Alan Stenhouse via use-livecode
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


Re: Problem simulating a location

2020-04-13 Thread Alan Stenhouse via use-livecode
Hi Graham

IIRC, mobileSensorReading() returns an array so you need to check the keys of 
the array.

Perhaps:

if tSensorData["latitude"] is empty then


HTH

cheers

Alan

> On Mon, 13 Apr 2020 14:38:56,Graham Samuel  > wrote:
> 
> 
> I?m trying to use the 10.2 XCode simulator to test an iOS app that uses the 
> phone?s ability to know its location (usually via GPS). I can run the 
> simulation and show that it?s working in a general way. Furthermore, 
> mobileSensorAvailable("location?) responds in the simulated app, saying the 
> sensor is ?authorizedWhenInUse?
> 
> However the following button handler - adapted from a lesson by Devin Asay 
> (very sincere thanks for all that, Devin!) always returns an empty result. I 
> have set the location in the simulator to a (genuine) custom location, but if 
> I choose one of the built-in locations, I still get the same result.
> 
>  On mouseUp
>mobileStartTrackingSensor "location? -- enable the sensor first
>put "now trying to get a one-off location reading" & return after fld 
> ?TheReport"
>put mobileSensorReading("location",false) into tSensorData -- this returns 
> a string with the current latitude, longitude and altitude
>mobileStopTrackingSensor ?location? -- turn off the sensor when done
>if tSensorData is empty then
>put "no location info!!" & return after fld "TheReport"
>else
>put tSensorData & return after fld "TheReport"
>   end if
> end mouseUp
> 

___
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: iOS scrollers

2019-12-01 Thread Alan Stenhouse via use-livecode
Hi Jacque,

Does putting a CR at the end of the field contents help? Before making the 
mobile scroller etc.

I think that was a workaround I came up with ages ago for the same (/similar?) 
problem. But could be that I'm misunderstanding your issue...

cheers

Alan

On 2 Dec 2019, at 3:30 am, J. Landman Gay wrote:


This is a blocker for us. Adding extra space to the contentRect doesn't
work, Swami tested it on a real iPhone 10 and it shows the same issues
as the simulator.

If anyone has a workaround I need it real soon now. Meanwhile I'll put
in a bug report.

___
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: put img into img after import snapshot

2019-12-01 Thread Alan Stenhouse via use-livecode
Hi Dan

Try putting a wait 50 millisecs (more or less?) after the import - pretty sure 
that's what I ended up with on mobile for the same issue. Not sure if it'd be 
device-dependent though - probably would be...?

HTH

cheers

Alan

> On 2 Dec 2019, at 3:30 am,Dan Friedman wrote:

> This works perfectly on desktop.  Why would it fail on mobile?
> 
> put 0,the bottom of btn "newsHeader",the width of this stack,the top of grc 
> "scaleRectangle" into pRect
> import snapshot from rect pRect
> put img 2 into img 1 // THIS LINE DOESN?T DO ANYTHING
> delete img 2
> set the rect of img "editingImage" to pRect
> 
> ?put img 2 into img 1? DOES work if it?s an image that?s not from the import 
> snapshot command.  Is there something I have to do to the image before this 
> will work?
> 
> Using LC 9.5.1 rc1
> 
> Thanks in advance!
> -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: mobilePickPhoto and Galaxy Note 8

2019-08-23 Thread Alan Stenhouse via use-livecode
Hi Dan

This is a confirmed bug, see (+ subscribe to) it at:

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

cheers

Alan

On 24 Aug 2019, at 8:52 am,Dan Friedman 
mailto:d...@clearvisiontech.com>> wrote:

Greetings!

I am using mobilePickPhoto to take a photo.  On all Apple devices it's working 
great. It's also working as expected on all Android devices except a Galaxy 
Note 8.  On this specific device the camera comes up, we take the photo and 
hear the shutter sound, but no photo is returned/created.  It's as if 
mobilePickPhoto was never called.  Again, this ONLY happens on a Galaxy Note 8. 
 Anyone have any insight to this?   Perhaps someone has a Galaxy Note 8 and can 
see if you're getting the same result?

Thanks in advance,
--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: load app to ios device for testing??

2019-08-11 Thread Alan Stenhouse via use-livecode
Hi Panos

Thanks for clarifying this. Now I'm wondering when exactly this changed as it 
definitely used to work in the Indy edition.

On the brights side, thanks to you (+ Scott), I won't have to try Scott's 4th 
suggestion as to which color chicken to sacrifice...! :-)

cheers

Alan

On 11 Aug 2019, at 7:30 pm, 
use-livecode-requ...@lists.runrev.com
 wrote:

Hello all,

The iOS connected physical device is shown in the test target menu only in
the business edition. The Android connected physical device is shown in all
editions.

Hope this helps,
Panos

___
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: load app to ios device for testing??

2019-08-10 Thread Alan Stenhouse via use-livecode
Hi Scott

Yes, I believe everything is configured correctly. I've been building + testing 
apps with LC Indy for mobile for many years and it's only relatively recently 
(last n months) that I've been having these problems. I can still test on the 
simulators but my iPhone doesn't appear in the Test Target menu when it's 
connected.

iTunes doesn't appear to support uploading of apps directly to the device any 
more, AFAICS. Is there some other manual way of installing a test/dev app to a 
device?

Hmm, wonder if it's just that my version of iOS is a little dated?  No, have 
upgraded and still doesn't appear.

My Xcode versions used are 9.2 and 10.1 with available SDKs being 11.2 and 12.1.

Now running ios 12.4 on my device, though was running 10.xx until yesterday 
(when I started this reply).

Any ideas? What other settings might affect this?

cheers

Alan


On 9 Aug 2019, at 7:30 pm,Scott Morrow via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Hello Alan,
I?m running LC 9.5.0 business, Mac OS 10.14.6 & Xcode 10.1
I am seeing both android and iOS actual devices (as well as the iOS and android 
simulator, which is an awesome addition) Did you select the correct platform in 
?Standalone Application Settings?? Is "Mobile Support? configured correctly in 
LC Preferences?

?
Scott Morrow


On Aug 9, 2019, at 12:42 AM, Alan Stenhouse via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Just wondering how we can download an ios build to our own local device for 
testing these days?

It used to be easy with iTunes to just attach your phone and download the app 
to the connected device inside iTunes, but that no longer seems possible 
(though possibly I'm missing something?).

I also miss the easy "Test" connection between LC and a connected device.

Or have I perhaps got something mis-configured after updating to Mojave?

LC 9.5.0
MacOS 10.14.5
XCode 10.1 et al

Any hints 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


load app to ios device for testing??

2019-08-09 Thread Alan Stenhouse via use-livecode
Just wondering how we can download an ios build to our own local device for 
testing these days?

It used to be easy with iTunes to just attach your phone and download the app 
to the connected device inside iTunes, but that no longer seems possible 
(though possibly I'm missing something?).

I also miss the easy "Test" connection between LC and a connected device.

Or have I perhaps got something mis-configured after updating to Mojave?

LC 9.5.0
MacOS 10.14.5
XCode 10.1 et al

Any hints 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: Question for LCB FFI workshop attendees at upcoming conference

2019-05-08 Thread Alan Stenhouse via use-livecode
openCV (open source Computer Vision) perhaps?

https://github.com/opencv/

Sadly not attending this year though!

cheers

Alan

On 7 May 2019, at08:35:21,Trevor DeVore 
mailto:li...@mangomultimedia.com>> wrote:


This is for anyone who plans on attending my workshop on using FFI in LCB
at the conference. Is there any code (a macOS Framework, Windows API, DLL,
dylib, etc.) that is written in Objective-C or that has a C wrapper that
you are interested in wrapping with LCB in order to make it available to
LiveCode?

If so, let me know in a response to this thread and I can take a look at it
before the workshop to see if I can include it.

--
Trevor DeVore
ScreenSteps
www.screensteps.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


Logging for mobile simulator on iOS?

2019-05-06 Thread Alan Stenhouse via use-livecode
Asked this on the forums with no response, so trying here...:

Opening the "System Log" from the Debug menu in the mobile simulator opens the 
system log but it doesn't seem like any of our usual log messages appear there 
now. 

I think this changed some time ago but don't remember what (if any) the 
solution is. Can someone help? Thanks in advance!

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