简体   繁体   English

Android内置数据使用API

[英]Android Built-in Data Usage API

One of the highlights of Android 4.0 is built-in data usage tracking . 内置数据使用跟踪是Android 4.0的一大亮点。 Is there anything in the Android APIs that can access the information? Android API中是否可以访问信息?

With the TrafficStats class, you can build your own traffic monitoring tools, but you can't grab the limits/warnings and existing data usage data that is present. 使用TrafficStats类,您可以构建自己的流量监视工具,但无法获取限制/警告和现有的数据使用情况数据。 So any apps using TrafficStats automatically start of with 0 data, where as if possible, I would like to be able to grab the user limits/warnings and existing data usage. 因此,任何使用TrafficStats应用都会自动从0数据开始,在可能的情况下,我希望能够抓住用户的限制/警告以及现有的数据使用情况。

Is there anything in the Android APIs that can access the information? Android API中是否可以访问信息?

Alas, no. las,不。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM