Froyo has a new class android.net.TrafficStats with the getUidRxBytes function (int uid) and getUidTxBytes (int uid) which allows for each application to receive the amount of sent / received traffic. The idea to write a simple program was born at once, it seems to me that the Google users meant it when they did this function. The program, when called, and once per hour updates the values in order not to lose data upon reboot, there is also an update button for paranoids.

Source: https://habr.com/ru/post/101839/
All Articles