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. I want to take a look at source of Dialer, Contacts, etc

You'll find the source here:

http://android.git.kernel.org/

For example, here's a pointer to the source tree for Contacts:

http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=summary




--~--~---------~--~----~------------~-------~--~----~

2. "looping" with a ContentValues var ...

Hi, everyone:

I'm trying to create a method that will post data to a web form. The
method will accept two parameters: 1) a url; and 2) a collection of
keys and values representing fields and values on the form. The
problem is that the fields and values are arbitrary - the names of the
fields, even the number of fields are unknown.

My first thought was, "hey, just put the fields in a ContentValues
variable." So, I'd have something like this:

Code:
ContentValues myFields = new ContentValues();
myFields.put("form_field_1", "some value");
myFields.put("form_field_2", "some other value");

myWebFormMethod(myURL, myFields);


However, I don't know how to "loop" through a ContentValues variable
and parse the "key" and "value." All of the examples I've found so far
expect that you know the names of the keys in advance (which, with my
method, I won't). Any ideas? Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~

3. SQLite data type

4. Questions Around Phone Conversations??

5. How to get MTU on Android?

6. new cupcake features???

7. onscreen keyboard on emulator