Why does Event intent in android not return a result?
I am creating a event using :
Intent intent = new Intent(Intent.ACTION_EDIT);
intent.setType("vnd.android.cursor.item/event");
And invoking the intent using
startActivityForResult(intent, Constants.LINK_CALENDER);
There is nothing returned to call in
onActivityResult(int requestCode, int resultCode, Intent data)
It always returns data=null
ie., returned intent result
is 开发者_运维技巧always null
.
I am trying to retrieve the "Done/Revert" state of calender event just created and some identity so that i can open the event again in future from elsewhere in code.
Are you sure that this activity does return something? Did not find definite proof that it should -or shouldn't- return anything, but that's what I would look up if I where you.
If it doesn't return anything, it's not shocking that you don't get anything as a returnvalue :)
精彩评论