Here you can find the source of getDeviceUDID(Context context)
public static String getDeviceUDID(Context context)
//package com.java2s; import android.content.Context; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; public class Main { /**/*from w ww. j ava 2s . c o m*/ * Obtain device wifi mac address(UDID) * * @author Sean Zheng * @CreateDate 2013-4-24 */ public static String getDeviceUDID(Context context) { WifiManager wifi = (WifiManager) context .getSystemService(Context.WIFI_SERVICE); WifiInfo info = wifi.getConnectionInfo(); return info.getMacAddress(); } }