Activity has leaked IntentReceiver ScreenReceiver that was originally registered here. Are you missing a call to unregisterReceiver()?
in main activity I have
// Register receiver that handles screen on and screen off logic
final IntentFilter intentScreenfilter = new IntentFilter(Intent.ACTION_SCREEN_ON);
intentScreenfilter.addAction(Intent.ACTION_SCREEN_OFF);
intentScreenfilter.addAction(Intent.ACTION_USER_PRESENT);
screenReceiver = new ScreenReceiver();
and when application is closed I get this message.
ACTION_SCREEN_OFF
AND
ACTION_SCREEN_ON
can not be registered in AndroidManifest but only programatically. What can I do? I don't want to use Service because if service is running all day this is not good for battery. What is the solution? How to use this receivers?