title: Android How to queue multiple intents on an IntentService
body: <p>I am a little bit confused regarding the usage of IntentService.</p>
  
  <ol>
  <li>The documentation says that IntentService queues all intents sent to it and process them one at a time.</li>
  <li>I took a look at the <a href="https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/app/IntentService.java/">code of IntentService</a> and I saw that <em>onStartCommand()</em> receives the intent, calls <em>onStart()</em> which sends it as a message to the intents queue</li>
  </ol>
  
  <p>I am pretty sure I read somwhere in the documentation that <em>onStartCommand()</em> is called by the system only once, if you issue twice a <em>startService()</em>, the second call will not result in <em>onStartCommand()</em> being called.<br>
  I might be wrong here, because I have been looking for this piece of documentation and I cannot seem to find it.<br>
  This contradicts the previous concept that says you can queue many intents in IntentService through onStartCommand().</p>
  
  <p><strong>So I need help here, how do I queue multiple intents on an IntentService?</strong>   </p>
  
  <p>I see only two options:</p>
  
  <ul>
  <li><p>Just call everytime <em>startService()</em> with different intents</p></li>
  <li><p>Call directly <em>onStart()</em> or <em>onStartCommand()</em> (bypassing <em>startService()</em>)</p></li>
  </ul>