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. kernel for htc magic

Hi, i am trying to compile android-2.6.29 kernel for htc-magic(32A)
with no success. I downloaded kernel (git repo(msm) from android main
repo). When i copy msm_defconfig to root of folder and create zImage,
than boot via fastboot:
fastboot boot zImage ramdisk.img
phone just shows "htc magic" logo and nothing next happened???

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

2. android htc sooner kernel

I'm trying to build a kernel for the htc exca 300, aka sooner.
This is an android prototype phone from htc, the kernel running on the
phone is
<5>Linux version 2.6.22-omap1 (a...@arvelnx.corp.google.com) (gcc
version 4.1.1) #1-
gc64286dd PREEMPT Tue Aug 28 18:21:25 PDT 2007
<4>CPU: ARM926EJ-S [41069263] revision 3 (ARMv5TEJ), cr=00053177
<4>Machine: Sardine

type used to build the kernel
so I believe the I can build a new kernel (latest android source) that
will boot on the phone.
The current problem I have is how to flash this device. There are 2
versions of the bootloader, the
one for the kernel show above is version HTC SPL 0.15.1000. I haven't
found a way to get
this version into fastboot mode. Looking the at the bootloader image
with Ida it looks like
there is a some way to download to flash with tftp. Does anybody know
how this might
work?

The other bootloader version is HTC SPL 0.08.1000. This version is
running a kernel version
that does not speak the m3-rc22a version sdk adb that other one does,
so I don't have
an image from the device. It does go into fastboot mode by holding SYM
and power.
It seems to speak an old fastboot protocol that is not compatible with
the fastboot code
in the latest source. With changes I can get fastboot to talk to the
device but I don't know
what protocol it speaks. If I send "fastboot reboot" to the device it
seems to echo back my
first character 'f' and then go silent. Anybody know what this ancient
protocol might be?

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. Ada yang punya software alarm, mp3 player, google sync, camera, camrecorder? Yg mantap dan full.hee

4. Ada yang punya software alarm, mp3 player, googlesync, camera, camrecorder? Yg mantap dan full.hee

5. problems with seeking even to the very beginning of stream

6. private resource in Donut

7. Cancel Pending Intent on Widgets