Coder Social home page Coder Social logo

networkstats's People

Contributors

nabinbhandari avatar robertzagorski avatar sunilmourya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

networkstats's Issues

i can't get stats for more than 2 hours

this is my code and when i get the start and end time stamp of bucket it's just last two hours.
how i get the bucket:

networkStats = networkStatsManager.queryDetailsForUid( ConnectivityManager.TYPE_WIFI, "", 0, System.currentTimeMillis(), packageUid); NetworkStats.Bucket bucket = new NetworkStats.Bucket(); networkStats.getNextBucket(bucket); return bucket;

and the bucket's stats:

D/since: 27 July 2017 - 20:30:00 D/until: 27 July 2017 - 22:30:00 E/stat: Slack down = 55.93 KB = 57270 up = 23.53 KB = 24093

Frequency of NetworkStatsManager Updats

Robert,

First of all, thank you so much for putting this project together. It has been immensely helpful as I work on my own app on Google Play, NetLive.

My question: I am seeing that the NetworkStatsManager for a given uid has much less frequent updates than provided by TrafficStats. Is this the case in your experience as well? Is there a way to have NetWorkStatsManager return updated values faster?

Thank you for your help.

for Dual SIM

I can see you used getSubscriberId(context, ConnectivityManager.TYPE_MOBILE) for fetching out Mobile Data but for dual sim phones how can I categorise or differentiate that which SubscriberId is being used ? Is it for Sim 1 or Sim 2 !!

Same numbers for Tx and Rx

Hi Robert, thanks for sharing this experimental app. We've noticed that both numbers for Rx and Tx for NetworkStatsManager are equal and remains the same. Not sure how to operate the app.

Thanks,

Martins

Params on screen

Hello,
Could you explain the prams that are displayed on screen per app. I see that for all the apps the Network Stats are similar.
Also when I compare the Data usage from Settings vs on app what needs to be considered ?

Uncaught exception thrown by finalizer

when i get stats for all packages which has internet permission i get this error many times!

Uncaught exception thrown by finalizer
and
java.lang.IllegalStateException: Binder has been finalized!
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.net.INetworkStatsSession$Stub$Proxy.close(INetworkStatsSession.java:463)
at android.app.usage.NetworkStats.close(NetworkStats.java:297)
at android.app.usage.NetworkStats.finalize(NetworkStats.java:110)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:217)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:200)
at java.lang.Thread.run(Thread.java:818)

Recent data of package

to know the bytes transferred using queryDetailsForUid, the start time mentioned with 0 and end time is system.currentTimeMillis().

How to get the recent data in bytes (i read in the closed issues where you mentioned bucket will take every 30 minutes info)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.