Getting Milliseconds from Calendar for a Month
<p>How can I get Time in Millisecond from Calendar Object in order to set an interval in Alarm Manager I am using the following code:</p>

<pre><code>am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), interval, sender);
</code></pre>

<p>and my calculation for <code>interval</code> for getting One month of MilliSeconds is as follows:</p>

<pre><code>Calendar monthCal = Calendar.getInstance();
monthCal.clear();
monthCal.setTimeInMillis(System.currentTimeMillis());
monthCal.add(Calendar.MONTH, 1);

interval =  monthCal.getTimeInMillis();
</code></pre>

<p>but I am not getting any repeating Alarms.</p>
