How does one use TrafficStats.incrementOperationCount()?

Posted by Dheeraj on Stack Overflow See other posts from Stack Overflow or by Dheeraj
Published on 2012-04-09T12:53:58Z Indexed on 2012/04/14 11:29 UTC
Read the original article Hit count: 200

Filed under:

The documentation for TrafficStats.incrementOperationCount() says:

Increment count of network operations performed under the given accounting tag. This can be used to derive bytes-per-operation.

I want to find the total number of bytes transferred during a particular network operation. Since this API claims to help in deriving bytes-per-operation, can someone help me understand how to use it?

© Stack Overflow or respective owner

Related posts about android