Empty intent extras in onActivityResult

前端 未结 2 1875
栀梦
栀梦 2021-01-13 13:24

I have two activities.

First calls second like this:

Intent intent = new Intent(this, Second.class);
startActivityForResult(intent, 1);
2条回答
  •  渐次进展
    2021-01-13 13:46

    I also ran into this and found the answer in the comments. To make it more discoverable for the next guy, let's restate as answer:

    You must read the same data-type as you put in.

提交回复
热议问题