I wanted to measure the battery consumption of various colors in the range of 0-255 in android. Wanted to do it through an application. Currently I am using the PowerManager to measure the initial level of Battery and then keeping the screen bright for say 10-20 mins and check the final battery level, the difference giving me the usage in %. But I am getting weird results as in "white" uses same power as "black" (both having a drop of 4%). So I think my appraoch may be wrong. Can someone please suggest me to appraoch the problem in a correct way. Please help !!
['https://Stackoverflow.com/questions/8937162', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/872506/']
(disclaimer: I co-founded the company that built the below product)

Try [Little Eye](http://www.littleeye.co) from Little Eye Labs, which lets you track an individual apps power consumption and breaks it down into its various hardware usage, including display, CPU and wifi (and shortly GPS). Based on the pixel color and the brightness levels used, the power consumption trend of the app will vary, and Little Eye helps you visualize that quite easily. Note its a desktop product (which connects to your phone) that you need to download and install from [here](http://www.littleeye.co)
There's an official power estimation tool called [Battery Historian](https://developer.android.com/studio/profile/battery-historian.html).It will create a text file which will show the power consumption of each component of the device in mAh. 

I also suggest you to run you App for a longer time like 1 hour because the power consumption difference may be very small.

I hope this will help you.