Skip to content

Instantly share code, notes, and snippets.

@rajajawahar
Last active April 2, 2018 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajajawahar/7ebd0b7c217a602f176ee6813fe44a2f to your computer and use it in GitHub Desktop.
Save rajajawahar/7ebd0b7c217a602f176ee6813fe44a2f to your computer and use it in GitHub Desktop.
public class BatteryLowReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(Intent.ACTION_BATTERY_LOW)) {
//Battery Level Notificaiton
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment