Background application to monitor battery state and give alerts