I want to run an application in background. I want to make an application when battery down to specific level I have to send sms to someone. If my phone is on standby or I am playing game and battery level reach 5% then I have to send sms. I want to Know how to run an application in background??
if (BtryLevelOrig==batteryLevel) {
Toast.makeText(getApplicationContext(), "level", Toast.LENGTH_SHORT).show();
SendSms();
}