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/LocationManager.html 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.
