Java Code Examples for android.os.Parcel.writeSerializable()

The following are Jave code examples for showing how to use writeSerializable() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: data-mediator   File: HistoryData.java   View Source Code Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.age);
    dest.writeLong(this.id);
    dest.writeInt(this.testShort);
    dest.writeByte(this.testByte);
    dest.writeByte(this.testBoolean ? (byte) 1 : (byte) 0);
    dest.writeFloat(this.testFloat);
    dest.writeDouble(this.testDouble);
    dest.writeInt(this.testChar);
    dest.writeValue(this.testLONG);
    dest.writeValue(this.testDOUBLE);
    dest.writeSerializable(this.testCharacter);
    dest.writeValue(this.testBOOLEAN);
    dest.writeValue(this.testSHORT);
    dest.writeString(this.name);
    dest.writeParcelable(this.data, flags);
    dest.writeTypedList(this.datas);
    dest.writeTypedArray(this.testArrayResultData, flags);
    dest.writeIntArray(this.testArrayInt);
    dest.writeArray(this.testArrayInteger);
}
 
Example 2
Project: Selector   File: ProductItemBean.java   View Source Code Vote up 6 votes
@Override public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.pname);
    dest.writeString(this.pfrom);
    dest.writeString(this.pfromId);
    dest.writeString(this.fromUrl);
    dest.writeString(this.detailUrl);
    dest.writeString(this.detailAppUrl);
    dest.writeString(this.image);
    dest.writeString(this.htmlUrl);
    dest.writeString(this.pfromImage);
    dest.writeInt(this.type);
    dest.writeString(this.typeVal);
    dest.writeSerializable(this.price);
    dest.writeString(this.symbol);
    dest.writeString(this.description);
    dest.writeString(this.remarkCount);
    dest.writeInt(this.goodCount);
    dest.writeInt(this.brandId);
    dest.writeInt(this.familyId);
    dest.writeInt(this.categoryId);
    dest.writeInt(this.amountType);
    dest.writeDouble(this.amountMoney);
}
 
Example 3
Project: q-mail   File: Attachment.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(uri, flags);
    dest.writeSerializable(state);
    dest.writeInt(loaderId);
    dest.writeString(contentType);
    dest.writeString(name);
    if (size != null) {
        dest.writeInt(1);
        dest.writeLong(size);
    } else {
        dest.writeInt(0);
    }
    dest.writeString(filename);
}
 
Example 4
Project: GitHub   File: Post.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.by);
    dest.writeValue(this.id);
    dest.writeValue(this.time);
    dest.writeSerializable(this.kids);
    dest.writeString(this.url);
    dest.writeValue(this.score);
    dest.writeString(this.title);
    dest.writeString(this.text);
    dest.writeInt(this.postType == null ? -1 : this.postType.ordinal());
}
 
Example 5
Project: FuelUp   File: Expense.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeParcelable(this.vehicle, flags);
    dest.writeSerializable(this.price);
    dest.writeLong(this.date != null ? this.date.getTime() : -1);
    dest.writeString(this.info);
}
 
Example 6
Project: pedidos-app   File: ExpandableGroup.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(title);
  if (items == null) {
    dest.writeByte((byte) (0x00));
    dest.writeInt(0);
  } else {
    dest.writeByte((byte) (0x01));
    dest.writeInt(items.size());
    final Class<?> objectsType = items.get(0).getClass();
    dest.writeSerializable(objectsType);
    dest.writeList(items);
  }
}
 
Example 7
Project: Saiy-PS   File: SaiyVoice.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(getName());
    dest.writeSerializable(getLocale());
    dest.writeInt(getQuality());
    dest.writeInt(getLatency());
    dest.writeByte((byte) (isNetworkConnectionRequired() ? 1 : 0));
    dest.writeStringList(new ArrayList<>(getFeatures()));
    dest.writeString(engine);
    dest.writeSerializable(gender);
}
 
Example 8
Project: MetadataEditor   File: FolderPickerConfig.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte(showHiddenFiles ? (byte) 1 : (byte) 0);
    dest.writeByte(showNonDirectoryFiles ? (byte) 1 : (byte) 0);
    dest.writeSerializable(this.defaultDirectory.getWrappedFile());
    dest.writeByte(showCancelButton ? (byte) 1 : (byte) 0);
}
 
Example 9
Project: CountryCurrencyPicker   File: Country.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.code);
    dest.writeString(this.name);
    dest.writeValue(this.flagId);
    dest.writeParcelable(this.currency, flags);
    dest.writeSerializable(this.locale);
}
 
Example 10
Project: FuelUp   File: FillUp.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeParcelable(this.vehicle, flags);
    dest.writeValue(this.distanceFromLastFillUp);
    dest.writeSerializable(this.fuelVolume);
    dest.writeSerializable(this.fuelPricePerLitre);
    dest.writeSerializable(this.fuelPriceTotal);
    dest.writeByte(this.isFullFillUp ? (byte) 1 : (byte) 0);
    dest.writeSerializable(this.fuelConsumption);
    dest.writeLong(this.date != null ? this.date.getTime() : -1);
    dest.writeString(this.info);
}
 
Example 11
Project: fragmentnav   File: FragmentIntent.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSerializable(targetCls);
    dest.writeInt(getFlags());
    dest.writeInt(inAnim);
    dest.writeInt(outAnim);
    dest.writeInt(showAnim);
    dest.writeInt(hideAnim);
    dest.writeInt(tempShowAnim);
    dest.writeInt(tempHideAnim);

    dest.writeString(getInvokerId());
    dest.writeString(getTag());
}
 
Example 12
Project: Book-Shelf   File: FullUser.java   View Source Code Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(this.id);
    dest.writeString(this.email);
    dest.writeString(this.password);
    dest.writeString(this.firstname);
    dest.writeString(this.lastname);
    dest.writeString(this.phone);
    dest.writeValue(this.firstaccess);
    dest.writeValue(this.lastaccess);
    dest.writeValue(this.lastlogin);
    dest.writeValue(this.avatar);
    dest.writeSerializable(this.sex);
    dest.writeString(this.cdate);
    dest.writeString(this.bdate);
    dest.writeString(this.description);
    dest.writeValue(this.isactive);
    dest.writeValue(this.bin);
    dest.writeString(this.country);
    dest.writeString(this.city);
    dest.writeString(this.zip);
    dest.writeString(this.street);
    dest.writeString(this.house);
    dest.writeString(this.flat);
    dest.writeValue(this.accessLevel);
    dest.writeString(this.role);
}
 
Example 13
Project: GitHub   File: SmallMessageSnapshot.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeInt(this.sofarBytes);
    dest.writeSerializable(this.throwable);
}
 
Example 14
Project: GitHub   File: CameraPickerHelper.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeSerializable(this.mOutputFile);
    dest.writeString(this.mSourceFilePath);
}
 
Example 15
Project: springreplugin   File: PluginRunningList.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mProcessName);
    dest.writeInt(mPid);
    dest.writeSerializable(mList);
}
 
Example 16
Project: MetadataEditor   File: StorageItem.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.displayName);
    dest.writeSerializable(this.file.getWrappedFile());
    dest.writeInt(this.storageType);
}
 
Example 17
Project: android-util2   File: LogicParam.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.mPosition);
    dest.writeParcelable(this.mParceData, flags);
    dest.writeSerializable(this.mSerData);
}
 
Example 18
Project: NSMPlayer-Android   File: VideoViewDataSource.java   View Source Code Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(this.uri, flags);
    dest.writeSerializable(this.headers);
}
 
Example 19
Project: GitHub   File: AbsParcelableLceViewState.java   View Source Code Vote up 3 votes
@Override public void writeToParcel(Parcel dest, int flags) {

    dest.writeInt(currentViewState);

    // PullToRefresh
    writeBoolean(dest, pullToRefresh);

    // write exception
    dest.writeSerializable(exception);

    // Content will be written in the subclasses
  }
 
Example 20
Project: GitHub   File: AbsParcelableLceViewState.java   View Source Code Vote up 3 votes
@Override public void writeToParcel(Parcel dest, int flags) {

    dest.writeInt(currentViewState);

    // PullToRefresh
    writeBoolean(dest, pullToRefresh);

    // write exception
    dest.writeSerializable(exception);

    // Content will be written in the subclasses
  }