com.github.ignition.location.receivers
Class IgnitedPassiveLocationChangedReceiver

java.lang.Object
  extended by android.content.BroadcastReceiver
      extended by com.github.ignition.location.receivers.IgnitedPassiveLocationChangedReceiver

public class IgnitedPassiveLocationChangedReceiver
extends android.content.BroadcastReceiver

This Receiver class is used to listen for Broadcast Intents that announce that a location change has occurred while this application isn't visible. Where possible, this is triggered by a Passive Location listener.


Field Summary
protected static String LOG_TAG
           
 
Constructor Summary
IgnitedPassiveLocationChangedReceiver()
           
 
Method Summary
 void onReceive(android.content.Context context, android.content.Intent intent)
          When a new location is received, extract it from the Intent and update the current location.
 
Methods inherited from class android.content.BroadcastReceiver
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_TAG

protected static String LOG_TAG
Constructor Detail

IgnitedPassiveLocationChangedReceiver

public IgnitedPassiveLocationChangedReceiver()
Method Detail

onReceive

public void onReceive(android.content.Context context,
                      android.content.Intent intent)
When a new location is received, extract it from the Intent and update the current location. This is the Passive receiver, used to receive Location updates from third party apps when the Activity is not visible.

Specified by:
onReceive in class android.content.BroadcastReceiver


Copyright © 2012. All Rights Reserved.