Search code examples
javaandroidlockscreen

Android: How to add battery stats to stock lock screen while not charging?


The stock Android lock screen will display your battery status while your phone is charging; does anyone know how to have it display your current battery status while it is not charging?

This doesn't seems like a super difficult task to accomplish, I'm just unsure where I need to start to get things going. It would be so awesome if someone would actually help me.


Solution

  • You might want to take a look at the source of myLock for Android. Even though the source is not linked on the Google code page (why?) it is available here under the terms of the GPLv3.