每天第一次打开app提醒更新或者其他的操作。
这种的操作我们其实拿时间来比较最好了,通过年月日来比较
SharedPreferences preferences = getSharedPreferences("LastLoginTime", MODE_PRIVATE);
String lastTime = preferences.getString("FirstTime", "");
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");// 设置日期格式
String todayTime
原创
2021-12-03 17:23:28 ·
352 阅读 ·
0 评论