Efficiency of requestLocationUpdates() and how to save these gps data

by Stefan » Thu, 03 Sep 2009 07:18:28 GMT


Sponsored Links
 Hello,

i'm developing a small gps application. I want to track "some" gps
data. So I use the requestLocationUpdates - function.
Now a quote from the android development reference:

"The frequency of notification or new locations may be controlled
using the minTime and minDistance parameters. If minTime is greater
than 0, the LocationManager could potentially rest for minTime
milliseconds between location updates to conserve power. If
minDistance is greater than 0, a location will only be broadcast if
the device moves by minDistance meters. To obtain notifications as
frequently as possible, set both parameters to 0. "

My question is, how much battery power will be lost, if a user wants
to track for example 100 km and i set the parameters to 0?
My second question is, how I can save the gps data efficiently?? If
the user wants to track a 100km tour, I will have 100.000 gps data (if
the device broadcast a change of location every 1m).

So I think, I have to choose the parameter values of the
requestLocationUpdates - function greater than 0.
Has anyone experience and can give me a value which gives good results
(if I drive with a bike (10-15km/h) or if i walk (5km/h)? And how can
I save a specific point during the minTime and minDist (for example if
there is a landmark)?


Thanks,
Stefan
--~--~---------~--~----~------------~-------~--~----~



Efficiency of requestLocationUpdates() and how to save these gps data

by Stefan » Thu, 03 Sep 2009 08:47:53 GMT


 Hello,

i'm developing a small gps application. I want to track "some" gps
data. So I use the requestLocationUpdates - function.
Now a quote from the android development reference:

"The frequency of notification or new locations may be controlled
using the minTime and minDistance parameters. If minTime is greater
than 0, the LocationManager could potentially rest for minTime
milliseconds between location updates to conserve power. If
minDistance is greater than 0, a location will only be broadcast if
the device moves by minDistance meters. To obtain notifications as
frequently as possible, set both parameters to 0. "

My question is, how much battery power will be lost, if a user wants
to track for example 100 km and i set the parameters to 0?
My second question is, how I can save the gps data efficiently?? If
the user wants to track a 100km tour, I will have 100.000 gps data (if
the device broadcast a change of location every 1m).

So I think, I have to choose the parameter values of the
requestLocationUpdates - function greater than 0.
Has anyone experience and can give me a value which gives good results
(if I drive with a bike (10-15km/h) or if i walk (5km/h)? And how can
I save a specific point during the minTime and minDist (for example if
there is a landmark)?


Thanks,
Stefan
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Android 2.1 Motorola Milestone

I updated couple days ago on my Telus Milestone unlocked and running
on Bell network, to 2.1 and now phone won't dial 1-888 numbers, I
tried 4-5 differant numbers and phone hangs up right away just a buzz
and call ends. No problem withh 1-800 and I have not tried 1-900 I
don't use those!

-- 

2. MotoDroid Gak Mau Flas

Baru dapet MotoDroid 2nd, karena pengen bersih, ane wipe aja trus mau
update.

Pada saat flash dari sdcard, ada error seperti ini:
E:EOCD marker occurs after start of EOCD
E:signature verification failed
Installation aborted.

Any idea kenapa dan bagaimana untuk balikin lagi ke normal ya? :D
Thank you responnya....

*************
Deska Affif
088-1100-GAYA (4292) | Y!: GadgetGaya
www.gadgetgaya.com  |  Light Up Your Gadget!

-- 
"Indonesian Android Community [id-android]" 

3. Compiling FFMpeg as NDK Shared library

4. SJSU Survey - Calling Android and other Platform Developers

5. Itemized Overlays...Not drawing a collection but refreshing????

6. Itemized Overlays...Not drawing a collection but refreshing????

7. SJSU Survey - Calling Android and other Platform Developers鈥