0

Morning

Does anyone know a method of getting the data usage of an app based on its ID in version 4.3 I tried usingTrafficStats.getUidTxBytes(uid) but that only returns 0 and after some research I found that this is because of version 4.3 , what is the work around to this

Zidane
  • 1,696
  • 3
  • 21
  • 35
  • This `TrafficStats.getUidTxBytes(uid)` available only `>= 5.0` – M D May 11 '16 at 07:10
  • @MD you are right so in 4.3 how would I go about getting that – Zidane May 11 '16 at 07:17
  • Don't know but you can check [NetworkInfoRepo](https://github.com/manishpatelgt/NetworkInfoRepo). my code i have developed such app – M D May 11 '16 at 07:18

0 Answers0