Unable to start service after setting alarm
<p>Can you please help me out in resolving this issue...</p>

<pre><code>    Calendar schedCalendar = Calendar.getInstance();
    schedCalendar.clear();
    schedCalendar.set(nYear, nMonth, nDay, nHour,nMinute,0);

    Intent myIntent = new Intent(this,SMSService.class);
    PendingIntent pendingIntent =   PendingIntent.getService(this,0,myIntent,PendingIntent.FLAG_ONE_SHOT);

    long interval = (schedCalendar.getTimeInMillis()-Calendar.getInstance().getTimeInMillis());
    alarmManager.set(AlarmManager.RTC_WAKEUP,(Calendar.getInstance().getTimeInMillis()+interval),pendingIntent);
</code></pre>

<p>Once i set the alarm.... registered service is not getting started.</p>
