Skip to content Skip to sidebar Skip to footer

Key _id Expected Parcelable But Value Was Java.lang.Long. While Passing Parceable Object Between Activity

I want to pass an object of my custom class to another activity. I came to know that Parceable is way and WAY faster than Serializable. But doing so i get the exception Key _id ex

Solution 1:

The problem was in the data type of the key that i was using in

mIntent.putExtra(CourseNote._ID, mTempCourseNote);

its data type is long, i have changed the data type to string and the problem is solved now!


Post a Comment for "Key _id Expected Parcelable But Value Was Java.lang.Long. While Passing Parceable Object Between Activity"