• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps how to get mobile internet speed in my application programatically

hi,

i am developing one small app, in that i have to find out whether device is connected to wifi or mobile network internet(GPRS/3G/HDSPA) and after that i have to find speed of the internet.

if it is connected to wifi we can easily get the speed of the net.
but for mobile network internet (GPRS/3G/HDSPA) i am not getting how to find the speed of internet

can anyone give me idea to find out mobile network internet speed
 
I moved this to the Application Development forum where I think you have a better shot at getting the answer you are looking for.:)
 
The best way to get a real reading of speed is to download something and compare the bytes downloaded against time elapsed. Then average this, (also best to throw out the top few numbers and bottom few numbers).
 
The best way to get a real reading of speed is to download something and compare the bytes downloaded against time elapsed. Then average this, (also best to throw out the top few numbers and bottom few numbers).

Agreed. This is the best way to achieve this.

Internet speeds are not an exact science. There's usually a maximum speed ("up to xxx mbps") but it's impossible to find out the exact speed without performing some kind of average speed check.
 
thank u very much for giving suggestion

i am very new to android.i have been working in android from last 3 weeks only
i dont know exactly how to calculate the downloaded bytes

can i get downloaded bytes by using

TrafficStats methods
getMobileRxBytes ()
getTotalRxBytes ()
 
Back
Top Bottom