【发布时间】:2015-07-29 17:29:17
【问题描述】:
我正在开发一个小型视频流应用程序。我想在Android中获得网络的上传和下载速度。我发现我们可以通过使用提供功能的Android NetworkCapabilities类来做到这一点
getLinkDownstreamBandwidthKbps()
Retrieves the downstream bandwidth for this network in Kbps.
This always only refers to the estimated first hop transport bandwidth.
getLinkUpstreamBandwidthKbps ()
Retrieves the upstream bandwidth for this network in Kbps.
This always only refers to the estimated first hop transport bandwidth.
1.first hop Here是什么意思?
2.如何使用它们。请提供一些链接以供参考,我们如何使用它们?
【问题讨论】: