com.github.ignition.location.utils.locationupdaterequesters
Class IgnitedFroyoLocationUpdateRequester

java.lang.Object
  extended by com.github.ignition.location.templates.IgnitedAbstractLocationUpdateRequester
      extended by com.github.ignition.location.utils.locationupdaterequesters.IgnitedLegacyLocationUpdateRequester
          extended by com.github.ignition.location.utils.locationupdaterequesters.IgnitedFroyoLocationUpdateRequester
Direct Known Subclasses:
IgnitedGingerbreadLocationUpdateRequester

public class IgnitedFroyoLocationUpdateRequester
extends IgnitedLegacyLocationUpdateRequester

Provides support for initiating active and passive location updates optimized for the Froyo release. Includes use of the Passive Location Provider.

Uses broadcast Intents to notify the app of location changes.


Field Summary
 
Fields inherited from class com.github.ignition.location.utils.locationupdaterequesters.IgnitedLegacyLocationUpdateRequester
alarmManager
 
Fields inherited from class com.github.ignition.location.templates.IgnitedAbstractLocationUpdateRequester
locationManager, TAG
 
Constructor Summary
IgnitedFroyoLocationUpdateRequester(android.location.LocationManager locationManager)
           
 
Method Summary
 void requestPassiveLocationUpdates(long minTime, long minDistance, android.app.PendingIntent pendingIntent)
          Request passive location updates.
 
Methods inherited from class com.github.ignition.location.utils.locationupdaterequesters.IgnitedLegacyLocationUpdateRequester
requestLocationUpdates
 
Methods inherited from class com.github.ignition.location.templates.IgnitedAbstractLocationUpdateRequester
removeLocationUpdates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IgnitedFroyoLocationUpdateRequester

public IgnitedFroyoLocationUpdateRequester(android.location.LocationManager locationManager)
Method Detail

requestPassiveLocationUpdates

public void requestPassiveLocationUpdates(long minTime,
                                          long minDistance,
                                          android.app.PendingIntent pendingIntent)
Request passive location updates. These updates will be triggered by locations received by 3rd party apps that have requested location updates. The miniumim time and distance for passive updates will typically be longer than for active updates. The trick is to balance the difference to minimize battery drain by maximize freshness.

Overrides:
requestPassiveLocationUpdates in class IgnitedLegacyLocationUpdateRequester
Parameters:
minTime - Minimum time that should elapse between location update broadcasts.
minDistance - Minimum distance that should have been moved between location update broadcasts.
pendingIntent - The Pending Intent to broadcast to notify the app of passive location changes.


Copyright © 2012. All Rights Reserved.