Is there any way to profile the battery usage by the application in development environment or real time?
BatteryManager seems not providing any per application API
There's a new tool called "little eye" that does this.
It can profile Battery, CPU, Wifi and Data usage for an App in a development environment. Its a commercial product, but in beta right now, so free to download (for the moment). (disclaimer: I work at little eye)