title: Android - Best practice for retrying IntentService
body: <p>My Android app sends a load of files to Amazon S3. Each file URI is passed in separate calls to <code>IntentService</code> which performs the upload.</p>
  
  <p>However, I'm wondering what is the best way to handle failures... Should I detect the failure with my <code>IntentService</code>'s <code>onHandleIntent()</code> method and retry within that same method, OR should I allow the failure to be handled outside of the method (and if so, how?)?</p>
  
  <p>I'm personally leaning towards the first suggestion as I would prefer any file to be successfully uploaded before subsequent files are attempted to be uploaded, but I am not sure if detecting errors and performing retries within the <code>onHandleIntent()</code> method is good practice(?).</p>