Top "Parcelable" questions

parcelable refers to the capability of an object to be converted to a parcel, a container for reading and writing data of various type, using type specific rather than generic serialization

Is it possible to create a HashMap that is Parcelable on Android?

I am trying to extend HashMap as a Parcelable and I got the syntax to compile, however, at runtime it …

android hashmap parcelable
Companion Objects in Kotlin Interfaces

I am trying to make a interface Parcelable, as such I need a interface like this interface AB : Parcelable { companion …

android parcelable kotlin
java.lang.RuntimeException: Parcel android.os.Parcel: Unmarshalling unknown type code

I seem to be getting a strange error in my app (see GitHub), which occurs when I pass objects to …

android android-intent parcelable
ClassNotFoundException when unmarshalling and really don't know why

FIXED: ANSWER AT BOTTOM I am writing an android app for a project and im trying to use parcelable objects. …

android unmarshalling parcelable
Reading and writing integer array to parcel

I could not find any solution for how to treat with integer array in case of parcel (I want to …

android parcelable
Android, How to use readTypedList method correctly in a Parcelable class?

I have two Activities, in the first one, I instanciate an ArrayList of Object myObject. In the second activity, i …

java android arraylist nullpointerexception parcelable
ArrayList cannot be cast to Parcelable

I get following Errors: Key com..BookStatus expected Parcelable but value was a ArrayList ClassCastException: ArrayList cannot be cast to …

android classcastexception parcelable
Transferring ByteArray through Parcel returns NullPointerException

import android.os.Parcel; import android.os.Parcelable; public class MClass implements Parcelable { private byte[] _byte; public MClass() { } public MClass(…

android byte parcelable
How to make a class with nested objects Parcelable

I'd like to make class A Parcelable. public class A { public String str; public ArrayList<B> list; } This …

android parcelable
Writing arrays of Parcelables to a Parcel in Android

I'm trying to write an array of objects that implement Parcelable into a Parcel using writeParcelableArray. The objects I'm trying …

java android parcelable parcel