(Get program power consumption ranking - Advanced Android Development & experience sharing
The principle of obtaining the battery power ranking of mobile phone in setting is mainly realized by reading the battery record file. It mainly uses the stable storage class Android os. Batterystats and special packages com android. ntemnal。
Hidden classes are easy to solve, mainly internal packages. This package is not only on Android Not available in ijar, and if you find this package, put it on Android In AR, you will find it useless. The reason is that ADT imposes restrictions on this package. Not allowed.
One solution is to modify the ADT to eliminate this limitation.
The other is not to put internal into Android Jar, which is imported into the project as a package, so that it will not be restricted.)