時刻と日付を示す 2 つの TextView を持つウィジェットがあります。
このコードのバッチを毎秒発生させたいだけです。
views.setOnClickPendingIntent(R.id.rl, pendingIntent);
java.util.Date noteTS = Calendar.getInstance().getTime();
String time = "kk:mm";
String date = "dd MMMMM yyyy";
views.setTextViewText(R.id.tvTime, DateFormat.format(time, noteTS));
views.setTextViewText(R.id.tvDate, DateFormat.format(date, noteTS));
したがって、ウィジェットで TextView を定期的に更新する簡単な方法が必要なので、時間が標準の 30 分よりも長く変化します。ありがとう