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
Regular Contributor
Posts: 75
Registered: ‎11-30-2012
My Device: curve
Accepted Solution

Find mac address blackberry 10

How to get the mac adress of the bb10 device?

Developer
Posts: 1,523
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Find mac address blackberry 10

Settings -> About -> Network -> MAC Address

 

For obtaining it programmatically this class will most likely work:

http://developer.blackberry.com/cascades/reference/qnetworkinterface.html#hardwareAddress

 

If you need device identifying information this thread has some links:

http://supportforums.blackberry.com/t5/Native-Development/getting-Mac-Address/m-p/2116105#M11253

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 229
Registered: ‎01-12-2013
My Device: z30

Re: Find mac address blackberry 10

Have a look at

 

QNetworkInterface::hardwareAddress()

 You can find the documentation over here

 

http://developer.blackberry.com/cascades/reference/qnetworkinterface.html

______________________________________________________
BB10-OAuth: GitHub
Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: Find mac address blackberry 10

http://developer.blackberry.com/cascades/reference/qnetworkinterface.html#hardwareAddress

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
New Member
Posts: 1
Registered: ‎03-11-2013
My Device: Blackberry 9810

Re: Find mac address blackberry 10

I tried the solution; however, there is no MAC address entry when I get to the settings/about/network screen. All that is listed is the IPv4 and IPv6 addresses

Regular Contributor
Posts: 75
Registered: ‎11-30-2012
My Device: curve

Re: Find mac address blackberry 10

Try using APIs in

http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_re...

 

Was able to get MAC address and IP address using APIs in this header.

New Contributor
Posts: 5
Registered: ‎07-04-2013
My Device: Z10

Re: Find mac address blackberry 10

QNetworkInterface::hardwareAddress()

The above function still returns any empty string. I don't know what the hell is wrong with it. I'm still trying to get MAC address of the device, but no luck so far.

 

Can you guys please tell me how I can use netstatus.h with Cascades to get the MAC address of the device?

 

Thanks