I want to get Battery status. I searched it on stack and i found the sample code using Broadcast Receiver but problem is that in my code i cannot use Broadcast Receiver.
So is there any way to get battery status without using Broadcast Receiver. It is possible for API 21 and above but i want it for API 17 and above. Thank you