android:我如何衡量我的智能手机产生的流量? [英] android: how do i measure the traffic my smartphone produces?

查看:8
本文介绍了android:我如何衡量我的智能手机产生的流量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要监控哪些服务/应用程序为我的手机产生了哪些流量(以 kbit/s 为单位,由上行链路和下行链路分隔).我该怎么做呢?我四处搜索,但没有找到任何有用的帖子/howtos...

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

推荐答案

答案是类 TrafficStats :)在这里,您可以获取传输的字节和/或包...

The answer is the class TrafficStats :) Here, you can get the transferred Bytes and/or packages...

这篇关于android:我如何衡量我的智能手机产生的流量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆