I can track the overall bandwidth usage of Android device. I wanted to know if there is any method or way, maybe an API or class, that can help me track my bandwidth usage per application or process?
Reason for this question? I want to stop all those processes or applications that are using way too much bandwidth usage and draining the battery.
You can use the methods in android.net.TrafficStats
, particularly getUidRxBytes
and getUidTxBytes
.