com.github.ignition.location.tasks
Class IgnitedLastKnownLocationAsyncTask

java.lang.Object
  extended by android.os.AsyncTask<Void,Void,android.location.Location>
      extended by com.github.ignition.location.tasks.IgnitedLastKnownLocationAsyncTask

public class IgnitedLastKnownLocationAsyncTask
extends android.os.AsyncTask<Void,Void,android.location.Location>


Nested Class Summary
 
Nested classes/interfaces inherited from class android.os.AsyncTask
android.os.AsyncTask.Status
 
Constructor Summary
IgnitedLastKnownLocationAsyncTask(android.content.Context context, int locationUpdateDistanceDiff, long locationUpdateInterval)
           
 
Method Summary
protected  android.location.Location doInBackground(Void... params)
           
protected  android.location.Location getLastKnownLocation()
          Find the last known location (using a LastLocationFinder) and updates the place list accordingly.
 ILastLocationFinder getLastLocationFinder()
           
protected  void onCancelled()
           
protected  void onPostExecute(android.location.Location lastKnownLocation)
           
 
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
 

Constructor Detail

IgnitedLastKnownLocationAsyncTask

public IgnitedLastKnownLocationAsyncTask(android.content.Context context,
                                         int locationUpdateDistanceDiff,
                                         long locationUpdateInterval)
Parameters:
appContext -
locationUpdateDistanceDiff -
locationUpdateInterval -
Method Detail

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.