public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); switch (requestCode) { case AddComment.CODE_COMMENT: if (resultCode == RESULT_OK) { // reload the comments try { updateCommentCount(this.talkJSON.getInt("rowID"), this.talkJSON.getString("uri")); } catch (JSONException e) { // nothing } } } }