How to get link speed programmatically?

前端 未结 3 1924
深忆病人
深忆病人 2020-12-04 18:42

I am working on an app and it is almost finished except only one thing: I don\'t know how to get link speed and place it in the status bar.I am new to Java so if somebody co

3条回答
  •  伪装坚强ぢ
    2020-12-04 18:59

    You can also write extension using JNI, and ask connection speed using C. It's just in case if you don't want to parse output from other application, but please keep in mind that this solution isn't portable.

提交回复
热议问题