TrafficStats functions always return -1

前端 未结 1 1879
一个人的身影
一个人的身影 2021-01-26 11:59

When i try to retrieve traffic data using TrafficStats class,

TrafficStats.getTotalRxBytes() and TrafficStats.getTotalTxBytes() functions alwa

相关标签:
1条回答
  • 2021-01-26 12:08

    If you are using emulator it might not work. Try on a real device.

    0 讨论(0)
提交回复
热议问题