How do I pass ArrayList of JSONObjects from RecyclerView's viewholder to another activity through intents?
2 Answers
If it's just ArrayList of strings you can use
intent.putStringArrayListExtra()
if it is ArrayList of objects make your object class Parcelable and use
intent.putParcelableArrayListExtra()
2 Comments
Chitransh Srivastava
it says : ArrayList<JSONObject> cannot be converted to ArrayList<? extends Parcelable>
Radwa
Convert your JSONObject to java object like descriptive here stackoverflow.com/questions/35210070/… then use Parcelable approach