title: Will AlarmManager work if my application is not running?
body: <p>I have an alarm that works fine if i am interacting(using) with my application but it dose not works if I set it for next day and not interacting with my app.Therefore I am getting doubt is this because my application process is not running at that time.</p>
  
  <p>here is what I am doing</p>
  
  <pre><code>Calendar calSet = Calendar.getInstance();
  calSet.set(Calendar.HOUR_OF_DAY, selectedhour);
  calSet.set(Calendar.MINUTE, selectedminute);
  calSet.set(Calendar.YEAR, year);
  calSet.set(Calendar.MONTH, monthOfYear);
  calSet.set(Calendar.DATE, dayOfMonth);
  alarm = new Intent(ActivityA.this, Service.class);
  pendingIntent = PendingIntent.getService(getApplicationContext(), i++,alarm, 1);
  alarmanager.set(AlarmManager.RTC_WAKEUP, calSet.getTimeInMillis(),pendingIntent);
  </code></pre>