0

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?

Enowneb
  • 943
  • 1
  • 2
  • 11
  • Does this help? https://stackoverflow.com/questions/49179382/android-networkstats-bucket-data-not-updating – Enowneb Feb 07 '23 at 02:05
  • @Enowneb I am asking for the refresh time of NetworkStatsmanager, or a way to track this. The thread you shared doesn't has it. – Pawan Shukla Feb 07 '23 at 06:57

0 Answers0