I am currently trying to measure the bandwidth consumed by a piece of code in android. Whenever I am calling the networkStatsManager.querySummaryForDevice()
, it is returning data value that is same for a particular period of time.
Here is the code sample:
networkStatsManager.querySummaryForDevice(
ConnectivityManager.TYPE_WIFI,
"",
0,
System.currentTimeMillis()
)
Can anyone confirm that after how much time the latest data is updated in NetworkStatsManager
?