Serializable crash error when loading web broser from my application

前端 未结 3 1573
醉话见心
醉话见心 2021-01-23 16:48

I\'m developing an application.

This application contains 2 classes

  • Discovery class which implements serializable

  • Main class which exten

3条回答
  •  再見小時候
    2021-01-23 17:25

    the problem is due to pass main activity to serializable class when creating its related object. in our case passing the MainTest Object to the Discovery object when creating it. The solution: create another serializable class which contains all Discovery data (data to be serialzable).

提交回复
热议问题