我想发送一个 arraylist 到 parent activity
private ArrayList<Receipt> receipts = new ArrayList<Receipt>(); Intent data = new Intent(); data. // what to do here? setResult(RESULT_OK, data); //************************************
下面是简单的代码
public class Receipt { public String referenceNo; public byte[] image; public String comments; public Date createdOn; public Date updatedOn;
如何在 intent 中添加,还有如何从 parent activity 里检索?
onActivityResult(final int requestCode, int resultCode, final Intent data)
扬帆大鱼
梦里花落0921
相关分类