title: Finishactivity doesn't finish the activity?
body: <p>I'm trying to get my activity to close and return with the result, I do have onActivityResult in my parent activity, and I have used close to the same method below in other places where it works.</p>
  
  <pre><code>public void deleteFile(){
          boolean deleted=FileManager.getInstance().deleteMeasurementData(this.getIntent().getData(), this);
          if(deleted){
              Toast.makeText(this, originalData.getName() +".mmd Has been deleted", Toast.LENGTH_SHORT);
              setResult(EditMeasurement.RESULT_YES_DELETED);
              finishActivity(EditMeasurement.RESULT_YES_DELETED);
          }else {
              Toast.makeText(this, originalData.getName() +".mmd did NOT delete", Toast.LENGTH_SHORT);
              Log.e(TAG, "File did NOT delete error");
          }
  
      }
  </code></pre>
  
  <p>This method was called from this menu :</p>
  
  <pre><code>public boolean onOptionsItemSelected(MenuItem item) {
          // Handle item selection
          Log.i(TAG, "something choosen "+item.getItemId()+" it should have been: "+R.id.om_measurement_menu_delete);
  
          switch (item.getItemId()) {
          case R.id.om_measurement_menu_edit:
              editFile();
              return true;
          case R.id.om_measurement_menu_delete:
              deleteFile();
              return true;
          case R.id.om_measurement_menu_cancel:
              endActivity();
              return true;
          default:
              return super.onOptionsItemSelected(item);
          }
      }
  </code></pre>
  
  <p>Anyone with any bright ideas why it doesnt close?</p>