title: Differences between Intent and PendingIntent
body: <p>I read through some articles. All seem to do the same thing and I was wondering what is the difference between starting the service as below:</p>
  <pre><code>Intent intent = new Intent(this, HelloService.class);
  startService(intent);
  </code></pre>
  <p>or below:</p>
  <pre><code>Calendar cal = Calendar.getInstance();
  Intent intent = new Intent(this, MyService.class);
  PendingIntent pintent = PendingIntent.getService(this, 0, intent, 0);
  AlarmManager alarm = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
  alarm.setRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), 30*1000, pintent); 
  </code></pre>
  <p>As I read through, these two do the same thing, if in the service you return a parameter START_STICKY;</p>