Does MobileSensorReading work?
jonathandlynch at gmail.com
jonathandlynch at gmail.com
Fri May 26 12:44:27 EDT 2017
Thank you Devin :)
Sent from my iPhone
> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Jonathan,
>
> I worked it out for my class. Here’s a sample app that takes you through the main points.
>
> http://livecode.byu.edu/mobile/sensorExercise.php
>
> Devin
>
> On May 26, 2017, at 9:30 AM, Jonathan Lynch via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:
>
> Never mind - I see
>
> It works after you turn on mobileSensorStartTracking, and appears to return an array on my device
>
> Sent from my iPhone
>
> On May 26, 2017, at 10:56 AM, Jonathan Lynch <jonathandlynch at gmail.com<mailto:jonathandlynch at gmail.com>> wrote:
>
>
> I put a button on my app and put the app on my iPhone.
>
> The button had the following script:
>
>
> on mouseUp
>
> put MobileSensorReading("location",true) into tReading
>
> answer the Keys of tReading
>
> answer tReading
>
> end mouseUp
>
>
> I figured this would tell me if the function was supposed to return an array or a variable, since I had read both online.
>
> Interestingly, it returned empty for both.
>
>
>
> --
> Do all things with love
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com<mailto: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
>
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
>
> _______________________________________________
> 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