Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer

Detect Connected Wifi Name

Hi All,

 

is there any way to detect connected wifi name programatically in Blackberry 10 cascades?

 

Thanks & Regards,

Anand Shram

Developer
Curahee
Posts: 229
Registered: ‎01-12-2013
My Device: z30

Re: Detect Connected Wifi Name

I searched for a while but the closest thing I could get was the name of the network interface on the device itself. Looks like it's not possible to get the SSID of the access point you're connected with...

______________________________________________________
BB10-OAuth: GitHub
Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer

Re: Detect Connected Wifi Name

Hi,

 

Anyone having workaround this?

I need to display connected wifi name in my project.....

 


Thanks & Regards,

Anand Sharma.

BlackBerry Development Advisor
sabdelsayed
Posts: 249
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10

Re: Detect Connected Wifi Name

[ Edited ]

Hi, you can use the QNetworkConfiguration API to retrieve the active WiFi configuration. For docs on the API go here

 

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer

Re: Detect Connected Wifi Name

Hi,

 

Am using below code to detect connected Wi-Fi name but it returns blank string please check it is correct or am doing anything wrong

 

QNetworkConfigurationManager netMgr;
QNetworkConfiguration config = netMgr.defaultConfiguration();

qDebug()<<"Bearrer Name:    "<<config.bearerTypeName();

 

Thanks & Regards,

Anand Sharma.

 

Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer

Re: Detect Connected Wifi Name

I need to show connected Wi-Fi name, suppose my connected Wi-Fi name is "test" then i need to display "test" as connected Wi-Fi name in my project.

Thanks & Regards,
Anand Sharma.
Developer
sorout2009
Posts: 104
Registered: ‎08-23-2012
My Device: Blackberry Z10

Re: Detect Connected Wifi Name

[ Edited ]

Hi Anand

I am also facing the same problem. I need to show the connected WIFI name in my app. I searched a lot, find some solution but they are not working at all. Its very urgent to me.
If some one knows abt this plz reply quickly.

Dharmender Singh
BlackBerry Development Advisor
sabdelsayed
Posts: 249
Registered: ‎08-17-2012
My Device: BlackBerry Z10 and Q10

Re: Detect Connected Wifi Name

[ Edited ]

Hi, i have just received confirmation from our internal teams that obtaining the SSID and network name are currently not possible with the current set of API's and Qt4. 

 

 

@SamarAbdelsayed

Did this answer your question? Please accept post as solution.
Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Developer
Anand04
Posts: 95
Registered: ‎06-05-2012
My Device: Developer

Re: Detect Connected Wifi Name

Hi,

Thanks for replay. It is possible with old Blackberry i developed same project in old Blackberry there I can get Connected wifi name by below code.

WLANAPInfo wlanInfo = WLANInfo.getAPInfo();
if(wlanInfo != null)
String networkName = wlanInfo.getProfileName();

Please let me whenever it will be possible with BB10 also.

Thanks,
Anand Sharma.
ghz
Contributor
ghz
Posts: 10
Registered: ‎05-08-2010
My Device: Z10

Re: Detect Connected Wifi Name

Hello sabdelsayed,

 

Is it possible to look up the SSID of the active WiFi profile using SDK 10.2? I've seen a new API for WiFiDirect, but no changes were spotted to other networking related packages so far.