android: how do i measure the traffic my smartphone produces?

 ̄綄美尐妖づ 提交于 2019-11-30 20:15:41

问题


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...


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!