私のアプリケーションでは、ユーザーは時間と日付を自由に選択してアラームを設定できます。ユーザーが 2 つのアラームにまったく同じ日時を選択するとどうなりますか。ユーザーからの入力(日付と時刻)を取得し、アラームを設定しています。
GregorianCalendar gc=new GregorianCalendar();
gc.set(2012, 1, 22, 11, 19,0);//values as given by the user
final Intent intent = new Intent(this, AlarmService.class);
gc.set(Calendar.AM_PM,0);
// final PendingIntent sender = PendingIntent.getBroadcast(this, 1, intent, PendingIntent.FLAG_UPDATE_CURRENT);
am.set(AlarmManager.RTC_WAKEUP, gc.getTimeInMillis(),PendingIntent.getBroadcast(this,1, intent, PendingIntent.FLAG_UPDATE_CURRENT));
アラームブロードキャストを受信するためにブロードキャストレシーバーを使用しました。この状況をどのように処理すればよいでしょうか。私は何をしたいですか?この状況で何が起こるかという技術的な側面を知りたいです。