startActivityForResult and Intents Extras, it seems extras are not pushed back

前端 未结 4 1905
鱼传尺愫
鱼传尺愫 2020-12-10 02:34

I have this code:

Intent intent = new Intent();
        intent.setAction(Intent.ACTION_PICK);
        intent.setData(ContactsContract.Contacts.CONTENT_URI);
         


        
4条回答
  •  [愿得一人]
    2020-12-10 02:57

    The EXTRA_ONLINE_ID field will have to be set in the activity that you launched using setResult. If it's not setting that value in the returned Intent (which is different from what you sent) then you will get a null value.

提交回复
热议问题