i have a notification that display the battery level. The notification is in a service because even if the app is closed the service still run and it can display the percentage of battery.. I've notice the battery level go down faster when the notification is active.. Is there a way to resolve this problem?
Edit: onCreate of service
@Override
public void onCreate(){
super.onCreate();
mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
}
and in the manifest i wrote this too ACTION_BATTERY_CHANGED