Re: [android-beginners] Problem in GPS while running in timer

2009-11-15 Thread 彬邵
Hi, Nemat I think your problem is that you call requestLocationUpdates in the TimerTask thread. As the documenthttp://androidappdocs.appspot.com/reference/android/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, android.location.LocationListener) says, The

[android-beginners] Problem in GPS while running in timer

2009-11-10 Thread Nemat
Hi frinds.. I am presently working on GPS.I have to start GPS periodically.I mean I want GPS to start after a particular intervel,get Location value and then stop taking location updates.For this,I m calling requestLocationUpdates( , , ) method in a timer.Then in onLocationChanged(), I stop