baoyongzhang / baoyongzhang/ParcelableGenerator
无法直接传递fastjson解析好的ArrayList数据
- Dominant language
- Java
- Stars
- 302
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
你好,我有两个问题需要请教一下:
1. 我在项目中想要将fastjson已经解析好的ArrayList数据传递到另一个Activity中,但是这样的话另一个 Activity 中 getIntent().getParcelableExtra(name) 和 getIntent().getParcelableArrayListExtra(name) 获取的数据都是null,除非我将 fastjson 解析好的 ArrayList 数据重新遍历一次,给每一项数据都加上PG.convertParcelable(bean)的操作,不知道作者有什么更好的解决办法没?
2. 在Android Studio中无法使用,提示找不到Person$Parcelable...
Contributor guide
No contributing guide indexed for this repository
Research direction
The report names getIntent().getParcelableExtra(name), getParcelableArrayListExtra(name), PG.convertParcelable(bean), and Person$Parcelable, but no source file or test. Start by reproducing both the Android Studio error and the Activity data-transfer cases, then identify the relevant generated Parcelable path and define expected non-null behavior with a focused regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100