i need to monitor, which services/apps produce what traffic (measured in kbit/s, separated by up- and downlink) for my phone. how do i do this? i googled around but did not find any helpful posts/howtos...
The answer is the class TrafficStats :) Here, you can get the transferred Bytes and/or packages...
来源:https://stackoverflow.com/questions/5455854/android-how-do-i-measure-the-traffic-my-smartphone-produces