>From what I've read on some other sites retrieving the MAC with the Wifi off will not always return a valid MAC (as in my case) and some devices don't have Wifi at all.
One site as an example : http://stackoverflow.com/questions/4468248/unique-id-of-android-device Quoted from that site : "You can get MAC address if network-device (Bluetooth etc.) is enabled in the system (turned on). But device may have bluetooth or wi-fi etc. or nothing" Seems like possibly using some of the other ID's in conjunction with a user/pass would be the best bet and updating the changes if and when they occur. My application has been out in the market for over a year now and I can definitely say that the ANDROID_ID is NOT unique in a lot of cases. On Feb 22, 9:16 am, Oceanblue <ns1...@gmail.com> wrote: > gcstang, I need to get the MAC address from the NDK layer, so I used > the socket call: > > s = socket(AF_INET, SOCK_DGRAM, 0); > > I have a Motorola Driod, but hopefully in a few days, I'll be able to > check this code on other phones too. > > On Feb 16, 10:56 am, gcstang <gcst...@gmail.com> wrote: > > > What did you use to get the MAC, when I tried it on my Droid (gen 1) > > with the wifi off I get a NullPointerException > > -- 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