Balagei Nagarajan
Balagei Nagarajan

Reputation: 5

Measure data use of an android app (component-wise)

Is there any way I could measure the data being used by the components in my android app? If yes, how can I do it?

For example, Say I have an app A with X and Y components, I would like to know that what amount of internet data the component X uses and what amount of internet data Y uses.

Upvotes: 0

Views: 415

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007584

You can use TrafficStats for this, either to programmatically record the amount of bandwidth before and after some operation (e.g., "download images from the internet"), or to use the tag structure to help show this sort of breakdown in DDMS.

Upvotes: 0

Related Questions