parcelable - Unmarshalling unknown type code exception while reading parcel values in Android 4.4+ -
i'm using parcelable
interface , working fine till android 4.3 (jelly bean)
when install same app on device running under android 4.4+ (kitkat)
crashing while reading parcel. throwing below error :
java.lang.runtimeexception: parcel android.os.parcel@42acce90: unmarshalling unknown type code 6881383 @ offset 1864
when try read :
getintent().getextras().getstring("type").contains("some_type");
i have put extra
in intent
:
intent ointent = new intent(getactivity().getapplicationcontext(), eventfragment.class); ointent.putextra("type", "some_type");
after long time , r&d, came know should not use arraylist
inside arraylist
, within parcelable
object. causing issue.
so end-up using serializable
interface provided java
, both concept same.
Comments
Post a Comment