title: How can I find out how much battery my Android app consumes on user's devices?
body: <p>I am writing an app to evaluate the feasibility of a Bluetooth P2P network on Android.</p>
  
  <p>I noticed that on a Galaxy Nexus, it uses very little battery, while on a Nexus S, it drains the battery very quickly. This is directly caused by high CPU load due to Bluetooth.</p>
  
  <p>Now, I would like to collect information about how much battery drain my app causes on the devices it is installed upon. Simply logging time vs. battery level is useless since I don't know when the device is in use, and even if I logged that, I would not know if the user is playing 3D games while Torrenting over WiFi or reading an eBook on a dimmed screen.</p>
  
  <p>To make the problem worse, not all battery usage caused by my app is attributed to it in the battery screen - some is listed as "Bluetooth", for example (again, device-dependent).</p>
  
  <p><strong>Is there any easy, privacy-preserving way to get useful information on non-rooted devices?</strong> The devices are not under my control. I cannot simply go look in the menu, I cannot use ADB.</p>