title: Pending intent get service
body: <p>I am having a problem getting my <code>pendingIntent</code> to fire. I have done some troubleshooting using the logcat etc. and in the end I am almost positive that my problem is actually in my <code>pendingIntent</code> method. The times I have set are correct, and the method is getting called, but nothing happens at the scheduled times. 
  Here is the method that I use to create the <code>pendingIntent</code></p>
  
  <pre><code>public void scheduleAlarm(){
      Log.d("Alarm scheduler","Alarm is being scheduled");
      Intent changeVol = new Intent();
      changeVol.setClass(this, VolumeService.class);
      PendingIntent sender = PendingIntent.getService(this, 0, changeVol, 0);
      AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
      alarmManager.set(AlarmManager.RTC_WAKEUP, time, sender);
      //Toast.makeText(this, "Volume Adjusted!", Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>Here is the service class:</p>
  
  <pre><code>public class VolumeService extends Service{
  
  @Override
  public void onCreate() {
      super.onCreate();
      Log.d("Service", "Service has been called.");
      Toast.makeText(getApplicationContext(), "Service Called!", Toast.LENGTH_LONG).show();
  }
  
  @Override
  public IBinder onBind(Intent arg0) {
      // TODO Auto-generated method stub
      return null;
  }
  
  }
  </code></pre>
  
  <p>The log in the <code>scheduleAlarm()</code> class is working as I planned but then nothing happens, so I assume it is my <code>pendingIntent</code>.
  Thanks in advance!</p>