Activity의 onCreate에서 알람 리시버를 등록을 합니다. 



Intent intent = new Intent("ALARM_ALERT"); 

intent.putExtra("cmd","alert");   

int requestCode = 1;

PendingIntent sender = PendingIntent.getBroadcast(this, requestCode, intent, PendingIntent.FLAG_CANCEL_CURRENT);  

long now = System.currentTimeMillis();

long interval = 10 * 60000;

long startTime = now + interval;

AlarmManager am = (AlarmManager) getSystemService(Context.ALARM_SERVICE);  

am.setInexactRepeating(AlarmManager.RTC_WAKEUP, startTime, interval, sender);


AndroidManifest.xml에서 "ALARM_ALERT"에 대해서 receiver class name을 주고 있습니다. 


Activity 속의 코드에서 receiver의 instance를 만들어서 알람매니저에 등록할 방법은 없나요?