parcelable encountered ioexception writing serializable object…?

前端 未结 5 658
旧时难觅i
旧时难觅i 2021-01-19 01:43

The code

SngList.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView a, View v, int position, long id) {


        In         


        
5条回答
  •  盖世英雄少女心
    2021-01-19 02:14

    In my case, there was a nested Delivery class inside the actual class Order (implements Serializable) which was not serialized, once Delivery class also implemented Serializable, the exception is gone. I didn't have to implement parcelable at all. Hope this helps someone!

提交回复
热议问题