1. agharass's Avatar
    I'm trying to perform a network connectivity check whenever user opens the app or whenever app comes in foreground. Below is the sample code

    void ApplicationUI:nFullscreen()
    {
    qDebug()<<"Application has entered foreground";
    QNetworkConfigurationManager mgr;
    QList<QNetworkConfiguration> activeConfigs = mgr.allConfigurations(QNetworkConfiguration::Activ e);
    if (activeConfigs.count() > 0)
    {
    qDebug()<<"Has Internet connection";
    }
    else
    {
    qDebug()<<"No Internet connection";
    }

    }

    This always prints Has Internet connection even when the network connection is off. Any ideas?
    03-19-15 05:30 AM

Similar Threads

  1. How to recover a Blackberry playbook if stolen
    By CrackBerry Question in forum Ask a Question
    Replies: 3
    Last Post: 03-22-15, 11:44 PM
  2. OS leak update to 10.3.1....?
    By mattmers in forum BlackBerry 10 OS
    Replies: 2
    Last Post: 03-19-15, 10:18 AM
  3. Google Albums not displayed in Browser correctly
    By rhitdoph in forum Ask a Question
    Replies: 3
    Last Post: 03-19-15, 06:53 AM
  4. In BlackBerry mobile can we set a preference for wifi and data package?
    By CrackBerry Question in forum Ask a Question
    Replies: 0
    Last Post: 03-19-15, 12:30 AM
LINK TO POST COPIED TO CLIPBOARD