My application uses TrafficStats class to read tx and rx of every application. I am checking tx and rx value periodically. what i had observe is these values resets when device reboots or user switch from 3g to wifi. My question is, apart from these activities, when does tx and rx values gets reset and what is the maximum range of the tx, rx value?
Share
txandrxvalues are returned inlong(4bytes). Therefore, forunsigned long, the max would be2^32. I believe the counter will also reset when is is overflowed.