title: Why isn't my service running? (As judged by displaying Toast message.)
body: <p>I am trying to make a service in the background so I can run a loop that requests a page every x minutes. This is my service in the manifest:</p>
  
  <pre><code>&lt;service android:name=".webToSMS" android:enabled="true" /&gt;
  </code></pre>
  
  <p>And here is my service being started (in the main activity):</p>
  
  <pre><code>Intent intent = new Intent(this, webToSMS.class);
  startService(intent);
  </code></pre>
  
  <p>And finally, this is my service class:</p>
  
  <pre><code>public class webToSMS extends IntentService {
  
    public webToSMS() {
        super("webToSMS");
    }
  
    @Override
    protected void onHandleIntent(Intent intent) {
        Context context = getApplicationContext();
        CharSequence text = "Hello toast!";
        int duration = Toast.LENGTH_SHORT;
  
        Toast toast = Toast.makeText(context, text, duration);
        toast.show();
    }
  }
  </code></pre>
  
  <p>I was following the guide at Android and this is what it told me to do. What I am expecting is a toast to pop up saying "Hello toast!" when this service is run. Eventually when this works I will put a loop which will request a page every x minutes.</p>