返回的是作为唯一64位十六进制字符串的Android设备ID。
- import android.provider.Settings.Secure;
- private String android_id = Secure.getString(getContext().getContentResolver(),
UUID是一个128位的全局唯一不可变的标识符(UUID)。
- import java.util.UUID;
- private static String uniqueID = UUID.randomUUID().toString();
来源: http://www.phpxs.com/code/1001733/