I'd like to write an app which would give the total amount of data downloaded over a period of time.
Should I have a service running in the background which keeps track of the data usage or just an app calling the appropriate api's when opened would do?
Which all api's could I use for this?