Git Product home page Git Product logo

Comments (4)

koush avatar koush commented on September 18, 2024

Hrm, should be easy to add. I do have basic support for it in the underlying library:

https://github.com/koush/AndroidAsync/blob/master/AndroidAsync/src/com/koushikdutta/async/AsyncServer.java#L344

from ion.

koush avatar koush commented on September 18, 2024

Oh, I can only do reads. Also, there's better ways to do this by directly reading process stats. That may be what you want to use, as it is much more accurate.

http://stackoverflow.com/questions/12904809/tracking-an-applications-network-statistics-netstats-using-adb

See /proc/self/net/dev

You should parse that.

from ion.

blacelle avatar blacelle commented on September 18, 2024

Thanks for the SOF reference, however, I'd like to provide network stats to my users. Not just to myself in a dev environment.
What do you mean by "I can only do reads." ?

Also, do you confirm onDataTransmitted is called with the numbers of bytes ?

from ion.

koush avatar koush commented on September 18, 2024

Not just to myself in a dev environment.

@BlasD I'm not following; why can't you parse the /proc/self/net/dev and present that to a user? I guess I don't understand what that dev node is missing.

What do you mean by "I can only do reads." ?

Right now, AndroidAsync/ion only tracks total amount of data downloaded, but not the total amount uploaded. Would need to make some changes to support that as well.

from ion.

Related Issues (20)

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.