Android ID Generate generateKey()

Here you can find the source of generateKey()

Description

generate Key

License

Open Source License

Declaration

public static final String generateKey() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Main {
    public static final String generateKey() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(
                "yyyy-MM-dd-HH-mm-ss-SSS");
        return simpleDateFormat.format(Calendar.getInstance().getTime());
    }//from w  ww .ja  va2s  .co  m
}

Related

  1. getSequenceId()
  2. generateId(Object... value)
  3. generateId(Object... value)
  4. generateRecordingIdentifier()
  5. getAndroidId(Context context)
  6. generateRandomUIID()