I changed, but no think change.

public void requestLocationUpdates (String provider, long minTime,
float minDistance, PendingIntent intent)

minTime: the minimum time interval for notifications, in milliseconds.
This field is only used as a hint to conserve power, and actual time
between location updates may be greater or lesser than this value.

minDistance: the minimum distance interval for notifications, in
meters


I have tried this:
lManager.requestLocationUpdates(choix_source,600000, 1, this);
and it did not last for 10minutes.

Please can you more explain?

Thanks

On Aug 31, 11:40 am, jagan reddy <[email protected]> wrote:
> Hi,
>
> lManager.requestLocationUpdates(choix_source,10000, 1, this);
>
> in the above line the two int parameters are there : one for the time interval
> and one for location data capturing time:
>
> change those values. Basically those values are given in milliseconds....
>
> For more information look 
> this:http://developer.android.com/reference/android/location/LocationManag...
>
> On Wed, Aug 31, 2011 at 3:53 AM, souissi haythem <[email protected]>wrote:
>
>
>
> > Hi,
>
> > I got a problem: when i lunch my GPS from a service, My GPS start
> > working for 12 seconds then stop. How can i do to make my GPS work for
> > 3 minutes?
>
> > the is my code:
> > lManager =
> > (LocationManager)getSystemService(Context.LOCATION_SERVICE);
> > lManager.requestLocationUpdates(choix_source,10000, 1, this);
>
> > Thanks :)
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Android Discuss" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/android-discuss?hl=en.
>
> --
> *
> Thanks & Regards
>
> JaganMohanReddy | Mobile Application Developer
> Hyderabad: +91-9948760191
> E-mail: sai <http://goog_450581020>mohan <http://goog_450581020>j2me
> @gmail.com
>
> *

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Reply via email to