/** Method invoked to stop the rename service. */
 private void doStopRenameService() {
   if (mApplication.isRenameFileTaskRunning()) {
     mApplication.setRenameFileTaskCanceled(true);
   } else {
     doFinish();
   }
 }
 /** This method will start the rename service. */
 private void doStartRenameService() {
   mApplication.setRenameFileRequested(true);
   if (!mApplication.isRenameFileTaskRunning()) {
     new RenameFileAsyncTask(mApplication, this, true).execute();
   }
 }