Android – Get battery level and percentage programmatically

735 views.

activity_main.xml

in drawable create once xml file to percentage in style

progressbar_states.xml

MainActivity.java

output

You may also like...

Leave a Reply