Re: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
If it helps anyone - one can apparently recalibrate the compass by facing 
north, stopping sensor tracking, and restarting sensor tracking. It is only a 
temporary solution.

Sent from my iPhone

> On May 27, 2017, at 10:21 AM, jonathandly...@gmail.com wrote:
> 
> The problem might be on my phone - the compass app does the same thing!
> 
> Sent from my iPhone
> 
>> On May 27, 2017, at 8:31 AM, jonathandly...@gmail.com wrote:
>> 
>> The mobile sensor reading is having a problem when combined with the plist 
>> hack.
>> 
>> When I hit the home button to put the app in pause mode, and then go back 
>> into the app, the device thinks that north is in whichever direction the 
>> phone is facing when the app resumes.
>> 
>> It is strange.
>> 
>> Sent from my iPhone
>> 
>>> On May 26, 2017, at 12:44 PM, jonathandly...@gmail.com wrote:
>>> 
>>> Thank you Devin :)
>>> 
>>> Sent from my iPhone
>>> 
 On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
  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 
 mailto:use-livecode@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 
 mailto:jonathandly...@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@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@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: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
The problem might be on my phone - the compass app does the same thing!

Sent from my iPhone

> On May 27, 2017, at 8:31 AM, jonathandly...@gmail.com wrote:
> 
> The mobile sensor reading is having a problem when combined with the plist 
> hack.
> 
> When I hit the home button to put the app in pause mode, and then go back 
> into the app, the device thinks that north is in whichever direction the 
> phone is facing when the app resumes.
> 
> It is strange.
> 
> Sent from my iPhone
> 
>> On May 26, 2017, at 12:44 PM, jonathandly...@gmail.com wrote:
>> 
>> Thank you Devin :)
>> 
>> Sent from my iPhone
>> 
>>> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
>>>  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 
>>> mailto:use-livecode@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 
>>> mailto:jonathandly...@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@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@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: Does MobileSensorReading work?

2017-05-27 Thread Jonathan Lynch via use-livecode
The mobile sensor reading is having a problem when combined with the plist hack.

When I hit the home button to put the app in pause mode, and then go back into 
the app, the device thinks that north is in whichever direction the phone is 
facing when the app resumes.

It is strange.

Sent from my iPhone

> On May 26, 2017, at 12:44 PM, jonathandly...@gmail.com wrote:
> 
> Thank you Devin :)
> 
> Sent from my iPhone
> 
>> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
>>  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 
>> mailto:use-livecode@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 
>> mailto:jonathandly...@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@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@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: Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
Thank you Devin :)

Sent from my iPhone

> On May 26, 2017, at 12:29 PM, Devin Asay via use-livecode 
>  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 
> mailto:use-livecode@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 
> mailto:jonathandly...@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@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@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: Does MobileSensorReading work?

2017-05-26 Thread Devin Asay via use-livecode
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 
mailto:use-livecode@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 
mailto:jonathandly...@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
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  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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Does MobileSensorReading work?

2017-05-26 Thread John Dixon via use-livecode
You must start the 'sensor' first... usually done in your openStack handler... 
as in :-


on openStack

if environment() = "mobile" then


  mobileStartTrackingSensor "location", false

end if

end openStack


on locationChanged latitude, longitude

   set the theCurrentLocation of this stack to latitude & comma & longitude

end locationChanged


then as your location changes, the locationChanged message will give you the 
new lat/long 😊


Dixie


From: use-livecode  on behalf of 
Jonathan Lynch via use-livecode 
Sent: 26 May 2017 15:56
To: How to use LiveCode
Cc: Jonathan Lynch
Subject: Does MobileSensorReading work?

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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Runtime Revolution - use-livecode Mailing 
List<http://lists.runrev.com/mailman/listinfo/use-livecode>
lists.runrev.com
This mailing list is intended for discussion relating to using LiveCode. To see 
the collection of prior postings to the list, visit the use-livecode Archives


___
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

Does MobileSensorReading work?

2017-05-26 Thread Jonathan Lynch via use-livecode
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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode