I am interested in writing an app to record how the resources on my phone are used by those installed apps. These resources can be microphone, camera, bluetooth, GPS, contacts, network, battery usage, sensors etc. I would like to record when and how long did a app used a resource.
Is there any API on android which I can use to access those information ?
Thanks in advance for your time and suggestions!