Android Calendar: onActivityResult's resultCode is always 0
I develop an Android application that prompt the calendar application to edit events. I use startActivityForResult() to open the Calender. After editing and saving the event, resultCode is always 0 inside onActivityResult() . I saw many answers related to "onActivityResult resultCode always returns 0". This is because of not using the setResult() and finish() in the 2nd activity. But in my case, I am calling the Android calendar application (not a custom activity). The code to prompt the Android calendar: Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item