sorry i have put wrong milisecond values corrected to, myManager.requestLocationUpdates(myManager.GPS_PROVIDER, 10000, 5,locationListener);
but, the problem remains same, not getting values at fixed interval i want continious lat-long values irrespective of location change what should i do? plz help me to understand the issue. thanks in advance Sumedh On Dec 4, 10:01 am, Sumedh <sumedhjos...@gmail.com> wrote: > Hi, > > Working on application in which I try to get current lat-long and send > it to server on which a listener is executing which will listen the > data comning on port. > > I have used location listener for this. And in onLocationChanged I > have written the methods getLattitude(), getLongitude(). > > I have used the method > LocationManager myManager = > (LocationManager)this.getSystemService(Context.LOCATION_SERVICE); > myManager.requestLocationUpdates(myManager.GPS_PROVIDER, 10000000, 5, > locationListener); > > i want lat-long values for every 10 sec > > but aftr executing this code i get lat-long values without any fixed > interval, and aftr some time programs stops, means the code executes > but wont transmit the lat-long values > > plz help me to understand the issue. > thanks in advance > Sumedh -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en