Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 910
Muhammad Shahab Avatar asked Nov 03 '10 05:11

Muhammad Shahab


1 Answers

You can use the methods in android.net.TrafficStats, particularly getUidRxBytes and getUidTxBytes.

like image 68
Jean Hominal Avatar answered Sep 30 '22 00:09

Jean Hominal