Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getRomoteName(String id) { SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); return "android_" + id + "_" + sdf.format(new Date()); } }