Broadcast Receiver for all API level devices . getting all the actions performed by device at one place. working on all devices get all Actions at place for :- 1.Power Connected 2.Power disconnected 3.Screen On 4.Screen off 5.Network connectivity change
You can add other action according to your need .