Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Obtain the MAC address of a device in an app

I'm working on a SIP phone app here at work and we are needing to do some remote provisioning. I need my app to be able to grab the device's MAC address or maybe serial number and pass that from the app to our provisioning server.

I hear in iOS that the application level cannot get a device's MAC for security reasons, so they instead use an application GUID. Is there a way to do this in Android. MAC address was our VPs first thought but really it is anything that will be unique to that device. MAC, serial number, GUID... Something.

Ben Jakuben, Ben Deitch, or anyone else please chime in.