Hello All,
Want a change to happen only if the Android device has been given a
loooong shake.
Here was my first thought on how to do this:
/////////////////////////////////////////////////////////
local tMotionStartMillisecs
on motionStart
put the milliseconds into tMotionStartMillisecs
end motionStart
on motionEnd
put the milliseconds - tMotionStartMillisecs into tMillisecDiff
if tMillisecDiff > 3000 then
send doTheChange to me in 0 milliseconds
end if
end motionEnd
////////////////////////////////////////////////////////////
Problem is, motionEnd gets called even though the device is, according
to my senses, still being shaken. I guess my sense of an uninterrupted
shake differs from the device's/LC's assessment.
Any other way to do this?
Thanks.
--
Nicolas Cueto
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode