getInstallTimestamp static method

String getInstallTimestamp()

获取应用安装时间戳(首次运行时保存)

Implementation

static String getInstallTimestamp() {
  // 实际使用时应该在首次安装时保存这个值
  // 可以存储在SharedPreferences中
  return DateTime.now().millisecondsSinceEpoch.toString();
}