getCurrentPosition using ONLY GPS Provider (for Android device)

You must Login before you can answer or comment on any questions.

Hi, i want to register GPS track using real GPS satelite values. I have a problem because i can't establish continous GPS connection. I have setting:

Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST;
Titanium.Geolocation.preferredProvider = Titanium.Geolocation.PROVIDER_GPS;
Titanium.Geolocation.distanceFilter = 0;
Although distanceFilter is 0 (events continuously generated) - GPS connection is established for 5-10 seconds and then it breaks off. Next android again looking for satelites, establish connection for 5-10 seconds and breaks off. And again and aganin...

I need to record real continous satelite GPS track! Thanks for your help and sorry for my english.

1 Answer

You can set GPS as your preferred provider, but whether or not you actual get that provider is dependent on coverage. GPS is not going to be 100% available 100% of the time, and depending on your coverage, may be much less than that. The results will be different for everyone.

— answered 2 years ago by Anthony Decena
answer permalink
1 Comment
  • I know, but i've tested it outdoor and it looked like periodicly break off GPS connection, after 5 seconds. Something like new magic TimeFilter beside already existed distanceFilter. I've tested GPS connection on Google Maps application and RunKeeper, there were not this problem.

    — commented 2 years ago by Maciej Czerwiński

Your Answer

Think you can help? Login to answer this question!