質問が少し誤解を招く場合は申し訳ありません。
私は以前に別の質問をしました、そしてその助けによって私はここまで得ました。ここに問題があります。
特定の時間にサービスを開始することになっています。さて...Calendarオブジェクトから現在の時刻を使ってすぐに起動するとサービスが起動しますが、手動で時刻を設定するとサービスが起動しません。コードは次のとおりです。
Calendar myCal = Calendar.getInstance();
myCal.set(Calendar.HOUR_OF_DAY, 21);
myCal.set(Calendar.MINUTE, 4);
// Will use putExtras here to give service the details of which profile to activate
Intent intent = new Intent(Create.this, AutoBot.class);
PendingIntent pintent = PendingIntent.getService(Create.this, 0, intent, 0);
AlarmManager alarm = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
alarm.setRepeating(AlarmManager.RTC_WAKEUP, myCal.getTimeInMillis(), 5*1000, pintent);
これで技術的には機能するはずですが、そうではありません。そしてそれが私があなたの助けを必要とする理由です:(
また、複数のトリガー(アラーム自体)がある場合、setRepeatingの3番目の引数は何になりますか?