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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment