Bundle bundle = new Bundle();
bundle.putLong(ResultTypeCid1,parentList.get(selectParentIndex).getCid());
bundle.putLong(ResultTypeCid2, childList.get(selectTwoIndex).getCid());
bundle.putString(ResultTypeName, childList.get(selectTwoIndex).getClassname());
Intent intent = new Intent();
intent.putExtras(bundle);
setResult(RESULT_OK, intent);
backToPrevActivity();
本文深入探讨了Android中使用Intent与Bundle进行数据传递的方法。详细介绍了如何通过Intent与Bundle将长整型数据和字符串数据从一个Activity传递到另一个Activity,为开发者提供了一个清晰的示例。
5203

被折叠的 条评论
为什么被折叠?



