I posted a question here however I could not get answer to that but basically this question is heart of that and if someone can clarify this to me can hit two birds with one stone!
void scheduleAlarm(Context context) {
AlarmManager alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
Intent yourIntent = new Intent();
//TODO configure your intent
PendingIntent alarmIntent = PendingIntent.getBroadcast(context, MyApplication.ALARM_REQUEST_CODE, yourIntent, PendingIntent.FLAG_UPDATE_CURRENT);
alarmMgr.setExact(AlarmManager.RTC_WAKEUP, timeToWakeUp, alarmIntent);}
above code will trigger myAlarmReceiver class which extended BroadcastReceiver. Inside its onReceive() method I need to run again this alarm manager after exact two minutes.
Can any one help please?