I\'m developing an application.
This application contains 2 classes
Discovery class which implements serializable
Main class which exten
As far as I know Serializable is slow on Android, you should use Parcelable instead, see this link for more info: Benefit of using Parcelable instead of serializing object
Regards
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).
The error is pretty clear: Caused by: java.io.NotSerializableException: android.os.Handler
Figure out how to take the handler out: android.os.Handler handler = new android.os.Handler();