Package 

Class NetworkLocationIgnorer


  • 
    public class NetworkLocationIgnorer
    
                        

    A class to check whether we want to use a location. If there are multiple location providers, i.e. network and GPS, then you want to ignore network locations shortly after a GPS location because you will get another GPS location soon.

    • Method Summary

      Modifier and Type Method Description
      boolean shouldIgnore(String pProvider, long pTime) Whether we should ignore this location.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • shouldIgnore

         boolean shouldIgnore(String pProvider, long pTime)

        Whether we should ignore this location.

        Parameters:
        pProvider - the provider that provided the location
        pTime - the time of the location