List of usage examples for android.os Parcel writeParcelableArray
public final <T extends Parcelable> void writeParcelableArray(T[] value, int parcelableFlags)
From source file:com.codebutler.farebot.transit.OrcaTransitData.java
public void writeToParcel(Parcel parcel, int flags) { parcel.writeInt(mSerialNumber);/*from w ww .j a va 2 s.c om*/ parcel.writeDouble(mBalance); if (mTrips != null) { parcel.writeInt(mTrips.length); parcel.writeParcelableArray(mTrips, flags); } else { parcel.writeInt(0); } }
From source file:org.jorge.lolin1.func.champs.models.Champion.java
@Override public void writeToParcel(Parcel dest, int flags) { Field[] declaredFields = Champion.class.getDeclaredFields(); try {//from w w w .ja v a 2s . co m for (Field x : declaredFields) { Class<?> thisType = x.getType(); if (thisType == String.class) { x.setAccessible(Boolean.TRUE); dest.writeString(x.get(this).toString()); x.setAccessible(Boolean.FALSE); } } } catch (IllegalAccessException e) { Crashlytics.logException(e); } dest.writeStringArray(tags); dest.writeStringArray(skins); dest.writeParcelable(this.passive, flags); dest.writeParcelableArray(this.spells, flags); }
From source file:com.aokyu.dev.pocket.content.Page.java
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(getUID());//from ww w . j av a2 s.c o m dest.writeString(mResolvedId); dest.writeString(mGivenUrl); dest.writeString(mResolvedUrl); dest.writeString(mGivenTitle); dest.writeString(mResolvedTitle); dest.writeInt(mIsFavorited ? 1 : 0); dest.writeInt(mState.intValue()); dest.writeString(mExcerpt); dest.writeInt(mIsArticle ? 1 : 0); dest.writeInt(mImageState.intValue()); dest.writeInt(mVideoState.intValue()); dest.writeInt(mWordCount); dest.writeStringArray(mTags); dest.writeStringArray(mAuthors); dest.writeParcelableArray(mImages, 0); dest.writeParcelableArray(mVideos, 0); }