com.github.ignition.location.receivers
Class IgnitedLocationChangedReceiver

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

public class IgnitedLocationChangedReceiver
extends android.content.BroadcastReceiver

This Receiver class is used to listen for Broadcast Intents that announce that a location change has occurred. This is used instead of a LocationListener within an Activity is our only action is to start a service.


Field Summary
protected static String LOG_TAG
           
 
Constructor Summary
IgnitedLocationChangedReceiver()
           
 
Method Summary
 void onReceive(android.content.Context context, android.content.Intent intent)
          When a new location is received, extract it from the Intent and use it to start the Service used to update the list of nearby places.
 
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

IgnitedLocationChangedReceiver

public IgnitedLocationChangedReceiver()
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 use it to start the Service used to update the list of nearby places. This is the Active receiver, used to receive Location updates when the Activity is visible.

Specified by:
onReceive in class android.content.BroadcastReceiver


Copyright © 2012. All Rights Reserved.