com.github.ignition.location.tasks
Class IgnitedLastKnownLocationAsyncTask
java.lang.Object
android.os.AsyncTask<Void,Void,android.location.Location>
com.github.ignition.location.tasks.IgnitedLastKnownLocationAsyncTask
public class IgnitedLastKnownLocationAsyncTask
- extends android.os.AsyncTask<Void,Void,android.location.Location>
Nested classes/interfaces inherited from class android.os.AsyncTask |
android.os.AsyncTask.Status |
Methods inherited from class android.os.AsyncTask |
cancel, execute, get, get, getStatus, isCancelled, onPreExecute, onProgressUpdate, publishProgress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IgnitedLastKnownLocationAsyncTask
public IgnitedLastKnownLocationAsyncTask(android.content.Context context,
int locationUpdateDistanceDiff,
long locationUpdateInterval)
- Parameters:
appContext
- locationUpdateDistanceDiff
- locationUpdateInterval
-
doInBackground
protected android.location.Location doInBackground(Void... params)
- Specified by:
doInBackground
in class android.os.AsyncTask<Void,Void,android.location.Location>
onPostExecute
protected void onPostExecute(android.location.Location lastKnownLocation)
- Overrides:
onPostExecute
in class android.os.AsyncTask<Void,Void,android.location.Location>
getLastKnownLocation
protected android.location.Location getLastKnownLocation()
- Find the last known location (using a
LastLocationFinder
) and updates the place list
accordingly.
getLastLocationFinder
public ILastLocationFinder getLastLocationFinder()
onCancelled
protected void onCancelled()
- Overrides:
onCancelled
in class android.os.AsyncTask<Void,Void,android.location.Location>
Copyright © 2012. All Rights Reserved.