安卓数据统计
我知道 http://developer.android.com/reference/android/net /TrafficStats.html API 没有说明字节数是在什么时间范围内计算的?是每天、每月还是在手机的整个生命周期内?
如何确定给定时间范围内的移动数据流量?例如每月或从 2 月 2 日到 2 月 6 日?
是否也可以获得数据链路的持续时间?例如我不关心数据量,只关心移动网络的在线时间?
谢谢,A.
I am aware of http://developer.android.com/reference/android/net/TrafficStats.html what the API doesn't say is for what time frame the bytes are counted? Is it per day, per month or for the complete lifetime of the mobile?
What would be the way to determine the mobile data traffic for a given time frame? e.g. per Month or from 2nd of Feb to 6th of Feb?
Is it possible as well to get the duration of the data link? For example I don't care about the amount of data just about the online time via mobile network?
Thanks, A.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否考虑过在应用程序中实施分析? Google Analytics 是免费的,并且他们提供了适用于 Android 的 SDK。更多信息请点击此处。我相信 Flurry 也是免费的,并且获得了不错的评价。如果您有与该应用程序相关的网站(或者它们是单个“品牌”的一部分),我会在这两个网站上实施 GA,以便您可以轻松地在一个地方比较所有平台上的性能/访问者行为。
Have you looked at implementing analytics into the app? Google Analytics is free, and they provide an SDK for Android. More info here. I believe Flurry is also free, and gets pretty good reviews. If you have websites related to the app (or they are part of a single "brand"), I'd implement GA on both so you can easily compare performance/visitor behavior on all of your platforms in one place.