Skip to content

Library for measure your internet speed. [for android app]

Notifications You must be signed in to change notification settings

cee-dee/internet-speed-testing

 
 

Repository files navigation

Internet Speed Testing Library

This library base on https://github.com/bertrandmartel/speed-test-lib

To include in your project, add this to your build.gradle file:

//build.gradle [project module]

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}
//build.gradle [app module]

implementation 'com.github.oatrice:internet-speed-testing:1.0.1'

Demo

Usage

InternetSpeedBuilder builder = new InternetSpeedBuilder(this);
builder.setOnEventInternetSpeedListener(new InternetSpeedBuilder.OnEventInternetSpeedListener() {
    @Override
    public void onDownloadProgress(int count, ProgressionModel progressModel) {

    }

    @Override
    public void onUploadProgress(int count, ProgressionModel progressModel) {

    }

    @Override
    public void onTotalProgress(int count, ProgressionModel progressModel) {
        adapter.setDataList(count, progressModel);

    }
});
builder.start("http://2.testdebit.info/fichiers/1Mo.dat", 2);

Contributing

Suggestions and pull requests are highly encouraged.

About

Library for measure your internet speed. [for android app]

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 81.6%
  • Java 18.4%