[android-developers] Re: Find MAC address
Anyone have a clue how to implement this? This looks like a good way to get a unique ID for any device that can talk to the net. On Thu, Oct 22, 2009 at 7:31 PM, String sterling.ud...@googlemail.comwrote: On Oct 22, 8:49 pm, Ronny mayanka...@gmail.com wrote: I am eager to know if it is possible to get the device MAC address. How about http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress() I haven't tried it, and it's not documented, but it sure looks promising. String -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Find MAC address
The following works fine on Wifi. NetworkInfo networkInfo = connection.getActiveNetworkInfo(); WifiInfo wifiInfo = mWifiMgr.getConnectionInfo(); Log.d(TAG,MAC:+wifiInfo.getMacAddress()); For cellular I am not aware of a method over Java. You might be able to use busybox for obtaining some additional network information (busybox arp for the ARP table) -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Oct 23, 9:00 am, Wayne Wenthin wa...@fuligin.com wrote: Anyone have a clue how to implement this? This looks like a good way to get a unique ID for any device that can talk to the net. On Thu, Oct 22, 2009 at 7:31 PM, String sterling.ud...@googlemail.comwrote: On Oct 22, 8:49 pm, Ronny mayanka...@gmail.com wrote: I am eager to know if it is possible to get the device MAC address. How about http://developer.android.com/reference/android/net/wifi/WifiInfo.html...() I haven't tried it, and it's not documented, but it sure looks promising. String -- Writing code is one of few things that teaches me I don't know everything. http://www.fuligin.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Find MAC address
On Oct 22, 8:49 pm, Ronny mayanka...@gmail.com wrote: I am eager to know if it is possible to get the device MAC address. How about http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress() I haven't tried it, and it's not documented, but it sure looks promising. String --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---