안드로이드 알람 문제인데요..

시간이되서 알람발생시 이벤트하나를 실행되게 하려고합니다.. 잘안됩니다 ㅠ.ㅠ 도와주세요

private void setAlarm() {
mManager.set(AlarmManager.RTC_WAKEUP, mCalendar.getTimeInMillis(), pendingIntent());
if( 조건)
{

       <<이벤트>>

}
}