Is it possible to get continuous location updates in the doInBackground()
method of an Async Task?
For example requestLocationUpdates()
in onPreExecute()
and then doing something with the location changes inside the donInBackground()
method by altering the onLocationChanged()
method of the listener passed as a parameter for the requestLocationUpdates()
method.
How can something like this be achieved?