Android examples for java.util:UUID
create Dashless UUID
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.Iterator; import java.util.UUID; public class Main{ public static String createDashlessUUID() { return UUID.randomUUID().toString().replace("-", EMPTY_STRING); }//from w ww . j a v a 2 s .c o m }