title: How to get battery & mobile-data-usage of specific apps?
body: <h2>Background</h2>
  
  <p>Starting with some Android version (don't remember which), Android has the ability to show battery stats and mobile-data-usage (3G...) of the installed apps, so that the user will be aware of such a thing and will be able to think if the app should stay or not.</p>
  
  <p>I'm talking about those:</p>
  
  <p><img src="https://i.stack.imgur.com/kuiUm.png" alt="enter image description here"></p>
  
  <h2>The question</h2>
  
  <p>I've seen some apps on the play store that somehow fetch this data and show it to the user.</p>
  
  <p>How do they do it?</p>
  
  <p>How can I get the battery stats and mobile data usage of a specific app?</p>
  
  <p>Is there a tutorial about this? </p>
  
  <p>The only thing I've found is getting the status of the battery (charging/not charging,...).</p>