title: AlarmManager.RTC_WAKEUP Not Waking Device?
body: <p>I've been trying to use AlarmManager.RTC_WAKEUP to wake up my device to play some sounds. 
  Here's the alarm scheduling: </p>
  
  <pre><code>Intent intent = new Intent(Main.this, OneShotAlarm.class); 
  PendingIntent sender =  PendingIntent.getBroadcast(Main.this, 0, intent, 0); 
  
  // I want the alarm to go off 60 seconds from now. 
  Calendar calendar = Calendar.getInstance(); 
  calendar.setTimeInMillis(System.currentTimeMillis()); 
  calendar.add(Calendar.SECOND, 60); 
  
  // Schedule the alarm! 
  AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE); 
  am.set(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(), sender); 
  </code></pre>
  
  <hr>
  
  <p>The OneShotAlarm BroadCastReceiver: </p>
  
  <pre><code>public class OneShotAlarm extends BroadcastReceiver 
  { 
      @Override 
      public void onReceive(Context context, Intent intent) 
      { 
          Toast.makeText(context, "OneShotAlarm Broadcast invoked", 1000).show(); 
  
          intent = new Intent(context, ServiceClassToRun.class); 
  
          context.startService(intent); 
      } 
  }
  </code></pre>
  
  <hr>
  
  <p>The Service: </p>
  
  <pre><code>public class ServiceClassToRun extends Service { 
      protected static final int Rnd = 0; 
  
       public void onStart(Intent intent, int startId) { 
       //do some business here 
  } 
  </code></pre>
  
  <hr>
  
  <p>And finally, my manifest: </p>
  
  <pre><code>&lt;receiver android:name=".OneShotAlarm" android:process=":remote" /&gt; 
  &lt;service android:name=".ServiceClassToRun "/&gt; 
  </code></pre>
  
  <p>My service works fine when device is in wake up state.
  Any ideas are greatly appreciated. Has anyone else experienced this as 
  well? Thanks in advance. </p>