6.3.1.6.1. AccurateLocationTaker

public class AccurateLocationTaker implements LocationListener

6.3.1.6.1.1. Fields

6.3.1.6.1.1.1. mCircularError

protected float mCircularError

6.3.1.6.1.1.2. mContext

protected Context mContext

6.3.1.6.1.1.3. mGpsTakings

protected ArrayList<Location> mGpsTakings

6.3.1.6.1.1.4. mHandler

protected Handler mHandler

6.3.1.6.1.1.5. mIsCancelled

protected boolean mIsCancelled

6.3.1.6.1.1.6. mIsStopped

protected boolean mIsStopped

6.3.1.6.1.1.7. mLastLocationTime

protected Long mLastLocationTime

6.3.1.6.1.1.8. mLatAverage

protected double mLatAverage

6.3.1.6.1.1.9. mLatMin

protected Double mLatMin

6.3.1.6.1.1.10. mLatSum

protected double mLatSum

6.3.1.6.1.1.11. mLocationManager

protected LocationManager mLocationManager

6.3.1.6.1.1.12. mMaxTakeCount

protected Integer mMaxTakeCount

6.3.1.6.1.1.13. mMaxTakeTimeMillis

protected Long mMaxTakeTimeMillis

6.3.1.6.1.1.14. mMaxTakenAccuracy

protected Float mMaxTakenAccuracy

6.3.1.6.1.1.15. mOnGetAccurateLocationListener

protected OnGetAccurateLocationListener mOnGetAccurateLocationListener

6.3.1.6.1.1.16. mOnGetCurrentAccurateLocationListener

protected OnGetCurrentAccurateLocationListener mOnGetCurrentAccurateLocationListener

6.3.1.6.1.1.17. mOnProgressUpdateListener

protected OnProgressUpdateListener mOnProgressUpdateListener

6.3.1.6.1.1.18. mPublishProgressDelayMillis

protected long mPublishProgressDelayMillis

6.3.1.6.1.1.19. mStartTakeTimeMillis

protected long mStartTakeTimeMillis

6.3.1.6.1.1.20. mTakeTimeMillis

protected long mTakeTimeMillis

6.3.1.6.1.2. Constructors

6.3.1.6.1.2.1. AccurateLocationTaker

public AccurateLocationTaker(Context context, Float maxTakenAccuracy, Integer maxTakeCount, Long maxTakeTimeMillis, long publishProgressDelayMillis, String circularErrorStr)
Parameters:
  • context – The context.
  • maxTakeCount – The max count of the GPS taking. If null then count is ignored.
  • maxTakeTimeMillis – The max time for GPS taking (milliseconds). If null then time is ignored.
  • publishProgressDelayMillis – The delay (milliseconds) for publish progress.
  • circularErrorStr – The circular error, may be “CE50”, “CE90”, “CE95” or “CE98”. If null or something other then takes the default value, “CE50”.

6.3.1.6.1.3. Methods

6.3.1.6.1.3.1. cancelTaking

public void cancelTaking()

6.3.1.6.1.3.2. getAccurateLocation

protected Location getAccurateLocation(float circularError)

6.3.1.6.1.3.3. getCircularErrorFromString

protected float getCircularErrorFromString(String circularErrorString)

6.3.1.6.1.3.4. isCancelled

public boolean isCancelled()

6.3.1.6.1.3.5. isTaking

public boolean isTaking()

6.3.1.6.1.3.6. onLocationChanged

public void onLocationChanged(Location location)

6.3.1.6.1.3.7. onProviderDisabled

public void onProviderDisabled(String provider)

6.3.1.6.1.3.8. onProviderEnabled

public void onProviderEnabled(String provider)

6.3.1.6.1.3.9. onStatusChanged

public void onStatusChanged(String provider, int status, Bundle extras)

6.3.1.6.1.3.10. setOnGetAccurateLocationListener

public void setOnGetAccurateLocationListener(OnGetAccurateLocationListener onGetAccurateLocationListener)

6.3.1.6.1.3.11. setOnGetCurrentAccurateLocationListener

public void setOnGetCurrentAccurateLocationListener(OnGetCurrentAccurateLocationListener onGetCurrentAccurateLocationListener)

6.3.1.6.1.3.12. setOnProgressUpdateListener

public void setOnProgressUpdateListener(OnProgressUpdateListener onProgressUpdateListener)

6.3.1.6.1.3.13. startTaking

public void startTaking()

6.3.1.6.1.3.14. stopTaking

public void stopTaking()

6.3.1.6.1.3.15. takeLocation

protected void takeLocation(Location location)