com.github.ignition.location.receivers
Class IgnitedPowerStateChangedReceiver

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

public class IgnitedPowerStateChangedReceiver
extends android.content.BroadcastReceiver

The manifest Receiver is used to detect changes in battery state. When the system broadcasts a "Battery Low" warning we turn off the passive location updates to conserve battery when the app is in the background. When the system broadcasts "Battery OK" to indicate the battery has returned to an okay state, the passive location updates are resumed.


Constructor Summary
IgnitedPowerStateChangedReceiver()
           
 
Method Summary
 void onReceive(android.content.Context context, android.content.Intent intent)
           
 
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
 

Constructor Detail

IgnitedPowerStateChangedReceiver

public IgnitedPowerStateChangedReceiver()
Method Detail

onReceive

public void onReceive(android.content.Context context,
                      android.content.Intent intent)
Specified by:
onReceive in class android.content.BroadcastReceiver


Copyright © 2012. All Rights Reserved.