Back to project page android-util.
The source code is released under:
Apache License
If you think the Android project android-util listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.ms.square.android.util; /* w w w . jav a 2 s . c o m*/ import java.util.UUID; public class StringUtil { /** * Generates a variant 2, version 4 (randomly generated number) UUID as per RFC 4122. * @return UUID as a string */ public static String getNewUUID() { return UUID.randomUUID().toString(); } }