This question already has an answer here:
- How to get link speed programmatically? 3 answers
How do I get the data speed of wifi/mobile network programmatically in my application.
This question already has an answer here:
How do I get the data speed of wifi/mobile network programmatically in my application.
Here's the code for getting the WiFi speed:
For mobile network speed, refer to the below link:
http://www.gregbugaj.com/?p=47