I got the following code in my app:
The problem with this is that if I lunch the app in WLAN and then later change it to 3G, it will not see that it's connected and a connection dialogue appears. The same is true visa-versa, that is if it's 3G and I change it to WLAN.Code:if (QMaemoInternetConnectivity::isConnected()) { getData(); } else { QSystemDeviceInfo* deviceInfo = new QSystemDeviceInfo(); QSystemDeviceInfo::Profile profile = deviceInfo->currentProfile(); if (profile == QSystemDeviceInfo::OfflineProfile) { QMaemo5InformationBox::information(this, "The device is in Offline mode.", 10000); } else { QMaemoInternetConnectivity::connectionRequest(); } }
Also, if the device is set to automatically connect to 3G and no connection is present when launching the app, it will connect to WLAN.
Has someone else noticed this strange behaviour with QMaemoInternetConnectivity? Should I do it differently?
Cheers![]()




