Hi lbendlin, Thanks for your great response, is it work for only Wi-Fi or any other network like GPRS.
Regards, Sahil On Sat, Apr 14, 2012 at 1:04 AM, lbendlin <l...@bendlin.us> wrote: > 1) This will only work when the WiFi is actually powered. This may not be > guaranteed in your case (if the user is connecting via 3G etc) > > final WifiManager wm = (WifiManager) > (getApplication().getSystemService(Context.WIFI_SERVICE)); > final WifiInfo wi = wm.getConnectionInfo(); > Log.v(TAG, "WiFi: " + wi.getMacAddress()); > > 2) On your server, keep a whitelist of permitted MAC addresses. In your > app, ask the server if the device MAC is included. > > On Friday, April 13, 2012 2:33:02 AM UTC-4, Muhammad Sahil wrote: >> >> hi, >> I want to restrict my application for some security reason. So >> >> 1) How can i get the MAC address of my mobile. >> >> 2) How can i apply restriction for this MAC address to use my >> application. >> >> I hope someone provide me good answer. I am waiting for your kind >> help, >> >> Thanks and Regards, >> >> Sahil. > > -- > 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 > -- 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