I am developing an application where I want to perform two tasks:
- Show the frequently used applications according to a specific time.
- Want to perform some analysis on the battery usage by every application.
I have seen lots of similar question but didn't get a specific answer. I have also seen some apps which performs theses tasks. SO, I was wondering that how can it be accomplished. (Ref 1 : https://android.stackexchange.com/questions/18774/what-are-my-most-frequently-used-apps)
(Ref 2: How to get information about android battery usage by application -In this link, there is an answer but the links are dead)