/* (non-Javadoc)
  * @see android.app.Activity#onRestart()
  */
 @Override
 protected void onRestart() {
   Log.d(LOG_PREFIX, "onRestart called");
   // restarting file download
   if (fileDownloader != null && fileDownloader.hasRemainingDownloads()) {
     Log.d(LOG_PREFIX, "Continuing downloading of photos");
     fileDownloader.execute();
   }
   super.onRestart();
 }
  /* (non-Javadoc)
   * @see android.app.Activity#onStop()
   */
  @Override
  protected void onStop() {
    Log.d(LOG_PREFIX, "onStop called");
    if (slideshowTimerTask != null) {
      // interupt thread if necessary... we need to kill it
      slideshowTimerTask.cancel(true);
    }
    if (fileDownloader != null && fileDownloader.hasRemainingDownloads()) {
      Log.d(LOG_PREFIX, "Stopping downloading of photos");
      fileDownloader.stop();
    }

    super.onStop();
  }