Last active
April 2, 2018 15:45
-
-
Save rajajawahar/7ebd0b7c217a602f176ee6813fe44a2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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