I am attempting to collect second-by-second network usage, and the way to go seems like NetworkStatsManager. However, it collects summed data, whereas I'm looking for different network usage values second by second, so I can track to see how big of a jump occurs in usage when I use one app vs another app. I tried to set the start time as System.currentTimeMillis()-(60*1000); and the end time as System.currentTimeMillis(); however this doesn't appear to do anything. What am I doing wrong?

0

There are 0 best solutions below