アラームシステムがうまく機能するアプリケーションがあり、5つのクラスすべてをコピーしてデータベース名を変更するだけですが、機能していません。すべてのコードを貼り付けることができますが、誰かが次のようなものを持っているかどうかを聞きたいです。これは前に。
新しいReminderManager(this).setReminder(mRowId、mCalendar);を呼び出します。
rowIDは完全(いくつかの数値)であり、mCalendar(私が持っている他のアプリのMcalendarからの日付と比較する日付があり、同じ形式です)。これを呼び出すと、すべてが作成されたとおりになります。保留中の意図
public void setReminder(Long taskId, Calendar when)
{
Intent i= new Intent(mContext,OnAlarmReciver.class);
i.putExtra(DatabaseIN.KEY_ROWID,(long)taskId);
PendingIntent pi=PendingIntent.getBroadcast(mContext,0, i, PendingIntent.FLAG_ONE_SHOT);
mAlarmManager.set(AlarmManager.RTC_WAKEUP,when.getTimeInMillis(),pi);
}
after this nothing happens... can anyone help