Please consider the following snippet of Code:
QNetworkAccessManager* netManager = new QNetworkAccessManager(this);
if(netManager->networkAccessible() == QNetworkAccessManager::UnknownAccessibility)
{
Utilities::showToast("UnknownAccessibility", "Retry");
}
if(netManager->networkAccessible() == QNetworkAccessManager::NotAccessible)
{
Utilities::showToast("NotAccessible", "Retry");
}
if(netManager->networkAccessible() == QNetworkAccessManager::Accessible)
{
Utilities::showToast("Accessible", "Retry");
}
This permanently returns -1. Is there another way to detect Data and Wifi settings for BB Native?