My iOS to Android porting anomalies continue...
(I'm using LC 6.6(dp1))
I have a Motorola Moto G running Android 4.4.2. It has GPS sensors. They are turned on, and seem to be working because Google Maps knows where I am.
I have an app that needs to use the sensors.
In iOS I use get mobileSensorAvailable("location") which returns true. In Android it returns false.
In iOS I follow this with mobileStartTrackingSensor "location", false
In Android, that doesn't seem to do anything.
So, just to test, I tried
Code: Select all
put mobileSensorAvailable("location") into tLOC
put mobileSensorAvailable("heading") into tHDG
put mobileSensorAvailable("accelleration") into tACC
put mobileSensorAvailable("rotation rate") into tROT
answer tLOC & tHDG & tACC & tROT
And my iPad retina returns true true false true
All of which means I can't find any way to get location info from the Android phone.
I don't think this is a phone problem because, as I say, it has working GPS sensors, so it must be a code problem.
Could someone kindly point me in the right direction to get location info from an Android phone.
Many tkx...
--paul