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. aplikasi kayak friend stream

dear RR,

adakah yg punya aplikasi friend stream seperti di htc legend?
yang support utk tampil twitter dan facebook.

kalo ada yg punya apk nya,, bagi dunkss...

atau ada yg tau aplikasi yang 'mirip' gitu...

thx

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

2. Audio Output pending ?

Hello,

i have a Alarm which invoke a BroadcastReciever. This
BroadcastReciever enqueues an Task into my Service. The Task get
executed. On a failure i that Task i play a Sound (mostly for me at
the moment so i can check via aLogcat to see the stacktrace).

If the Phone (Nexus One) is sleeping and the Alarm gets on i have the
feeling that the Audio will not played. When i touch my Phone later
(in the morning) i hear all the Audio Failure Feedback. It that
correct behaviour ?

My Audio get Played with this Code:


                player = new MediaPlayer();
                player.setLooping(false);
                player.setOnCompletionListener(this);
                ...
                ...
                        AssetFileDescriptor afd = null;
                        try
                        {
                                afd = 
getContext().getResources().openRawResourceFd(_resourceID);
                                player.setDataSource(afd.getFileDescriptor(),
afd.getStartOffset(), afd.getLength());
                                player.setVolume(VOLUME, VOLUME);
                                player.prepare();
                                player.start();
                        }
                        ...



-- 

3. Mail Java API issues

4. facebook-android-sdk of Github Issue

5. Sprint halts EVO 4G update due to reports of it bricking phones

6. Sprint halts EVO 4G update due to reports of it bricking phones

7. Insecurity and Spyware Among Android Apps in the Android Market