How to find Internet connection speed in Qt (C++/QML)



  • I using Arcgis Runtime SDK for Qt 10.2.6 and Qt 5.4.2 (MSVC 2013, 32 bit) Qt Creator QT\QML side. And we are develop and deploy Adroid app with Android Armeobi-v7a (GCC4.9 , QT 5.4.2) kid.

    I have GIS application which generate geodatabase in device with internet ,how can I find internet connection speed for
    alert the user about internet connection speed before generate geodatabase in device.

    Best Regards


  • Moderators

    @halil-sogut68
    Since you are developing for mobile (Android) i have the following thoughts:

    1. the connection type and speed on mobile devices may and actually most probably will change from one moment to another. Unlike in an desktop environment
    2. event with a fast connection it depends how much load other apps generate on the connection
    3. from within your application you can only test how fast the connection is by downloading a file and measure transfer. But again this doesn't include the load during the transfer from other apps. So you should go rather for a system-specific solution. For example see this utility class to determine the (current) connection type on Android


  • Hi ,

    Thanks for ansvering queation raven-works . Are there any solution in QT(C++, QML) side because our application is Qt .

    Best Regards


  • Moderators

    @halil-sogut68
    Not that i am aware of.
    But with the provided java class included into your app, you should be able to call it using QAndroidJniObject in a one-liner.



  • Thanks raven-works. This can be hehlpful for us.

    Best Regards


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.