Network usage

In Android 4.0, the Data Usage feature in Settings enables long-term monitoring of how an application uses network resources. Starting with Android 4.0.3, it is possible to monitor an application using network resources in real time. It is possible as well to distinguish traffic sources by applying a tag to network sockets before use.

To display the network usage of an application, select a process from the left-hand side. Then move to the Network Statistics tab and click on the Start button. You can select the tracking speed: every 100, 250, or 500 ms. Then, interact with your application. A similar screen to the following one will be displayed:

The bottom of the screen displays the network information by Tag, and collected by ...

Get Android High Performance Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.