Does someone know if there is a way to limite the bandwidth of our Android application programatically ?
Thank You
Does someone know if there is a way to limite the bandwidth of our Android application programatically ?
Thank You
If you are writing an application you should may be able to control the rate at which you download content. See Android: how to limit download speed.
If the phone is rooted you may be able to leverage the OS to limit bandwidth. Either by using iptables or tc (traffic control). I believe this is how BradyBound works
If you're trying to throttle your app so that it doesn't use too much bandwidth, use's the answer from Stu.
If you're looking to test low bandwidth scenarios, or run the app with a simulated, crummier data connection, you can do this in the debug settings of a device or on your emulator: https://developer.android.com/studio/run/emulator-commandline.html
Look for -netspeed and -netdelay to simulate different sorts of networking scenarios and connectivity.