android: problem with Serializable object put into intent

后端 未结 4 929
时光取名叫无心
时光取名叫无心 2020-12-18 07:03

Hi i have problem with a class i want to pass in an intent by putting it into the putExtras() Its serializable and the code looks like this:

public abstract          


        
4条回答
  •  北海茫月
    2020-12-18 07:45

    The ObjectA in ArrayList should implements the interface Parcelable. After that you can put your arraylists in the intent, and get them in another activity.

提交回复
热议问题