I am developing an application for streaming data for Android, where I have to determine the speed of the Internet in order to adjust the quality of my stream in accordance with this speed.
I searched on the net about how to determine the Internet speed in Android, but I found only one way to download the file and knowing its size in order to determine the bandwidth:
bandwidth = contentLength / ((endTime-startTime) *1000);
Is there any other way to determine the internet band in android without downloading any file. I do not want to disrupt streaming video when downloading additional files.
Thanks.
android monitor bandwidth
Hadj Ali Oussama
source share