Android - How to track bandwidth usage by application or process?

I can track the overall bandwidth of an Android device. I wanted to know if there is any method or method, possibly an API or class that can help me track bandwidth usage for each application or process?

The reason for this question? I want to stop all these processes or applications that use too much bandwidth usage and drain the battery.

+5
source share
1 answer

You can use the methods in android.net.TrafficStats, especially getUidRxBytesand getUidTxBytes.

+5
source

All Articles