How to find the amount of data that is transferred when a web service is called from my Android application?

I want to check the size of the data that is transferred when my Android application calls a web service call. Is there any tool for this?

+4
source share
2 answers

In the HTTP response, you have a Content-Length header, which is the payload size in bytes. This is half the battle, you will need to calculate how much of your outgoing payload (if you're interested).

+2
source

TrafficStats: http://developer.android.com/reference/android/net/TrafficStats.html

You should see if it can report data to each UID. Otherwise, it can simply report the use of data from the entire system.

+2
source

Source: https://habr.com/ru/post/1395721/


All Articles