requestLocationUpdates

by dave.marsden » Tue, 11 Nov 2008 04:09:47 GMT


Sponsored Links
 I'm using the following statement to request updates on my G1s
position :

lm.requestLocationUpdates(
            LocationManager.GPS_PROVIDER,
            30000,
            30,
            locationListener);

Which I reckon shuold give me an update every 30sec when the device
has moved more than 30 metres.

However the device seems to get updates much more frequently. Anybody
any ideas?
--~--~---------~--~----~------------~-------~--~----~



requestLocationUpdates

by Christine » Tue, 11 Nov 2008 04:23:23 GMT


 The documentation says that you can specify these parameters but you
have no guarantee that you will get updates as you specify them.

On Nov 10, 9:09pm, "dave.marsden" <[EMAIL PROTECTED]


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


Sponsored Links


requestLocationUpdates

by crontabpy » Thu, 27 Nov 2008 20:57:38 GMT


 "In case the provider is disabled by the user, updates will stop, and
the onProviderDisabled(String)  method will be called. As soon as the
provider is enabled again, the onProviderEnabled(String) method will
be called and location updates will start again. "

Is there a way to enable or disable gps provider in the emulator to
get to run this methods?





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



requestLocationUpdates

by iAmACyborg » Mon, 22 Dec 2008 10:12:37 GMT


 You'll have to store the last time and place the update was received
for. Then when you get a new update; compare it to the saved values.
If the difference is >= your minimum, update the stored values and
pass the update on.

On Nov 10, 12:09pm, "dave.marsden" <dave.mars...@dragonfly-



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



Other Threads

1. What do i do if i have an idea ?

Dear group

       I am developing a new MIDI program and music composition reader
( also MIDI ) for the G1 phone which will run on all Android
devices .  Who do I contact concerning the details of my program
(  working title :  Prodigy )  .
Thanks

Frank Doggrell

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

2. both sdks

I have the previous version of the sdk installed.  I would like to keep that 
and also install the new version.  I want to be able to still use code created 
under the old version.  Is that possible?  Would it work if I installed eclipse 
again in a separate directory and then install the new sdk.



  Thanks,



    Greg


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

3. Building HelloWorld App problem java.lang.OutOfMemoryError: Java heap

4. Youtube app (plus) hulu/flash music players

5. ok the android developer challenger is over how can one still get into the android app market

6. Prodigy

7. any Silicon Valley Android programmers here?