如何使用android API监控网络状态和应用程序使用情况,如何确定速度,使用情况(Mb,Kb...),连接级别(好,坏,平均),就像初级开发人员需要知道要使用哪些类以及在哪里可以找到参考资料来实现这一点一样。
发布于 2014-02-11 00:59:00
以下链接将帮助您了解如何以编程方式确定每个应用程序的数据使用情况。
https://github.com/commonsguy/cw-omnibus/tree/master/Bandwidth/TrafficMonitor
http://agolovatyuk.blogspot.com/2012/04/android-traffic-statistics-inside.html
要查找网络统计信息,您可以使用和跟踪每个UID (应用程序)发送/接收的字节数。
http://developer.android.com/reference/android/net/TrafficStats.html
https://stackoverflow.com/questions/21682967
复制相似问题