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. Fiddler2 not capturing HTTP traffic

For HTTP debugging purposes, I'm try to set up Fiddler to capture and
display the HTTP traffic from my application. I've installed Fiddler2
and have tried various configuration options to get it to recognize
the HTTP traffic.

I've set the "http-proxy" arg to -http-proxy 127.0.01:8888 in the
Eclipse Target-Additonal Emulator Command Line Options. (I've even
tried 10.0.2.2). I've also run the emulator from the command line, I
start Fiddler and then my application. My issue is that Fiddler is not
recognizing any of the HTTP traffic.

I'm looking for help in figuring out how to configure Fiddler2 and the
Android Target to have Fiddler capture the HTTP traffic .

Tim Hilgenberg

-- 

2. How do I modify the -encoding argument to javac in the Android Ant build system

The Ant manual is here:

http://ant.apache.org/manual/index.html

Unfortunately, I can't link directly to the javac task without losing
the navigation panes, but it's under Core Tasks / javac

You want the encoding= attribute on the javac task.

Why on earth someone would put encoding="ascii" on a Javac task is
beyond me. UTF-8 is a direct superset, and what I encourage *EVERY*
Java developer to use, exclusively. Maybe Google is trying to
encourage English as a common language.

You can fix it in your individual build.xml, or you can fix it in the
template file in the SDK (for each platform version you download) in
templates/android_rules.xml.

In Eclipse, you'll want to go to Windows / Preferences / General /
Workspace and set the Text File Encoding to UTF-8. It defaults to
whatever your platform makes the default, which I claim isn't a good
idea for developers; we seldom develop exclusively for a single
platform these days, and our users are likely to have a different
setting anyway. The only sane approach is to use UTF-8 everywhere.

Think of it as a little ritual that every developer needs to go
through when setting up a new development environment or tool -- make
sure all the tools are using UTF-8.




-- 

3. Digicert signed https certificate throwing SSLException (Not trusted server certificate)

4. Mod: Join milis id-bada

5. Unseen GridViews in a ViewFlipper dont inflate?

6. Can't find resource for bundle error

7. BitlyAndroid, using bit.ly in your android code