mobileCurrentLocation()
Posted: Tue Jan 31, 2017 6:35 am
Hi All,
I am having some difficulty getting some of the commands/functions to work for android. So far I can't get any socket functions to work although I have had them working extensively in a live application for over two years. I will have to do some more work on that before I can say that I am stuck.
My main problem at the moment is trying to find out the current geo location data. Can someone tell me if there is something wrong with the following?
In card script....
on openCard
if the environment is "mobile" then
mobileStartTrackingSensor "location"
end if
end openCard
on closeCard
if the environment is "mobile" then
mobileStopTrackingSensor "location"
end if
end closeCard
In a button script....
on mouseUp
if the environment is not "mobile" then
beep
answer "Sorry, mobile only!"
exit mouseUp
end if
if mobileCanTrackLocation() is "true" then
answer "The location can be tracked"
else
answer "The location CANNOT be tracked"
exit mouseUp
end if
put "" into field "fldGeoData"
I get the message "The location CANNOT be tracked" and absolutely nothing else happens and I get nothing into the data field. I am using android version 6.
Has anyone else been able to get this stuff to work on android?
Regards,
Geoff Macumber.
I am having some difficulty getting some of the commands/functions to work for android. So far I can't get any socket functions to work although I have had them working extensively in a live application for over two years. I will have to do some more work on that before I can say that I am stuck.
My main problem at the moment is trying to find out the current geo location data. Can someone tell me if there is something wrong with the following?
In card script....
on openCard
if the environment is "mobile" then
mobileStartTrackingSensor "location"
end if
end openCard
on closeCard
if the environment is "mobile" then
mobileStopTrackingSensor "location"
end if
end closeCard
In a button script....
on mouseUp
if the environment is not "mobile" then
beep
answer "Sorry, mobile only!"
exit mouseUp
end if
if mobileCanTrackLocation() is "true" then
answer "The location can be tracked"
else
answer "The location CANNOT be tracked"
exit mouseUp
end if
put "" into field "fldGeoData"
I get the message "The location CANNOT be tracked" and absolutely nothing else happens and I get nothing into the data field. I am using android version 6.
Has anyone else been able to get this stuff to work on android?
Regards,
Geoff Macumber.