Hi,
I want to implement a tracking software (saving outdoor routes with
gps).
If the user press a button, the device should save the current! (and
not the LastKnownLocation) gps point.
If there isn't a direction change, the device looks after xxx seconds,
whether the user reaches a point yyy meters away from the last saved
point
(no problem with requestLocationUpdates(LocationManager.GPS_PROVIDER,
xxx, yyy, locationListener); )
I can't or won't save all 1m and 1 second a new gps point. Or does
somebody knows, how much memory is used, i i track a 10km route an
save every second the new gps points (~5km/h) ? And if somebody track
a 100km tour ^^
And whats up with the performance and responsivness of the app.
So I want to use a thread. If i click on the button ("left" or
"right"), I call removeLocationUpdate, than i start a thread, which
calls getLocation. In this function, I set requestLocationUpdates(..,
0,0,..). And here's my last question: How should my LocationListener
class know, wheter it was fired from requestLocationUpdates(..,
0,0,..) (pressing button) or from requestLocationUpdates
(LocationManager.GPS_PROVIDER, xxx, yyy, locationListener); ???
Because I want to change the requestLocationUpdates - function back to
xxx seconds and yyy meters??
I hope you can understand my problem and have some tipps for me.
Thanks and regards,
Stefan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---