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

Find mac address blackberry 10

How to get the mac adress of the bb10 device?

Please use plain text.
Developer
Zmey
Posts: 1,512
Registered: ‎12-18-2012
My Device: PlayBook, Z10, DAC

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
Please use plain text.
Developer
Curahee
Posts: 219
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

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

______________________________________________________
beRail: BlackBerry World - GitHub
Mobile Vikings: BlackBerry World - GitHub
Park in Brussels: BlackBerry World
Please use plain text.
Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

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
Please use plain text.
New Member
Dave_Burgess
Posts: 1
Registered: ‎03-11-2013
My Device: Blackberry 9810
My Carrier: Telus

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

Please use plain text.
Regular Contributor
mdmdev
Posts: 75
Registered: ‎11-30-2012
My Device: curve
My Carrier: airtel

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.

Please use plain text.
New Contributor
raykutro
Posts: 5
Registered: ‎07-04-2013
My Device: Z10
My Carrier: Vodafone

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

Please use plain text.