Example usage for android.os Parcel writeSerializable

List of usage examples for android.os Parcel writeSerializable

Introduction

In this page you can find the example usage for android.os Parcel writeSerializable.

Prototype

public final void writeSerializable(Serializable s) 

Source Link

Document

Write a generic serializable object in to a Parcel.

Usage

From source file:com.nextgis.firereporter.ScanexNotificationItem.java

public void writeToParcel(Parcel out, int flags) {
    out.writeSerializable(dt); //   private Date dt;
    out.writeDouble(X);//from ww w. j  a  v a  2 s  . c o  m
    out.writeDouble(Y); //  private double X,Y;
    out.writeInt(nIconId); //   private nIconId;
    out.writeLong(nID); //  private long nFid;
    out.writeInt(nConfidence); //   private int nConfidence;
    out.writeInt(nPower); //   private int nPower;
    out.writeString(sURL1); //   private String sURL1
    out.writeString(sURL2); //   private String sURL2
    out.writeString(sType); //   private String sType
    out.writeString(sPlace); //   private String sPlace
    out.writeString(sMap); //   private String sMap
    out.writeInt(mbWatched == true ? 1 : 0); //   private boolean mbWatched

    //
    out.writeInt(nFormat);
    out.writeString(sCoordLat);
    out.writeString(sCoordLon);
    out.writeString(sN);
    out.writeString(sS);
    out.writeString(sW);
    out.writeString(sE);
}

From source file:org.alfresco.mobile.android.api.session.impl.RepositorySessionImpl.java

@Override
public void writeToParcel(Parcel dest, int arg1) {
    dest.writeString(baseUrl);//from  w  ww  .j  a  v a 2  s .c  o m
    dest.writeString(userIdentifier);
    dest.writeString(password);
    dest.writeParcelable(rootNode, PARCELABLE_WRITE_RETURN_VALUE);
    dest.writeSerializable(repositoryInfo);
    dest.writeSerializable(cmisSession);
    Bundle b = new Bundle();
    b.putSerializable("userParameters", (Serializable) userParameters);
    dest.writeBundle(b);
}

From source file:com.simas.vc.nav_drawer.NavCAB.java

public void writeToParcel(Parcel out, int flags) {
    // Save the selected position
    out.writeInt(mInitiallySelectedPosition);
    // Save the items that were checked by the CAB
    out.writeSerializable((java.io.Serializable) checkedPositions);
}

From source file:org.alfresco.mobile.android.api.session.impl.CloudSessionImpl.java

@Override
public void writeToParcel(Parcel dest, int arg1) {
    dest.writeString(baseUrl);/*from   w w w  . j  av  a2s .  c om*/
    dest.writeString(userIdentifier);
    dest.writeString(password);
    dest.writeSerializable(currentNetwork);
    dest.writeParcelable(rootNode, PARCELABLE_WRITE_RETURN_VALUE);
    dest.writeSerializable(repositoryInfo);
    dest.writeSerializable(cmisSession);
    Bundle b = new Bundle();
    b.putSerializable("userParameters", (Serializable) userParameters);
    dest.writeBundle(b);
}

From source file:io.nuclei.cyto.share.PackageTargetManager.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mFacebookId);/*  ww w  . ja va 2  s .c  o  m*/
    dest.writeString(mText);
    dest.writeString(mUrl);
    dest.writeString(mEmail);
    dest.writeString(mSubject);
    dest.writeSerializable(mFile);
    dest.writeParcelable(mUri, 0);
}

From source file:de.schildbach.wallet.data.PaymentIntent.java

@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeSerializable(standard);

    dest.writeString(payeeName);// ww  w .j a v  a  2 s.  co  m
    dest.writeString(payeeVerifiedBy);

    if (outputs != null) {
        dest.writeInt(outputs.length);
        dest.writeTypedArray(outputs, 0);
    } else {
        dest.writeInt(0);
    }

    dest.writeString(memo);

    dest.writeString(paymentUrl);

    if (payeeData != null) {
        dest.writeInt(payeeData.length);
        dest.writeByteArray(payeeData);
    } else {
        dest.writeInt(0);
    }

    dest.writeString(paymentRequestUrl);

    if (paymentRequestHash != null) {
        dest.writeInt(paymentRequestHash.length);
        dest.writeByteArray(paymentRequestHash);
    } else {
        dest.writeInt(0);
    }
}

From source file:com.richtodd.android.quiltdesign.block.PaperPiecedBlockPiece.java

@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeSerializable(m_id);
    out.writeParcelable(m_from, 0);/*from  www .  j  a  v  a2 s.c om*/
    out.writeParcelable(m_to, 0);
    out.writeInt(m_color);
}

From source file:nuclei.ui.share.PackageTargetManager.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mFacebookId);//from www  .  j av a 2  s  .  co  m
    dest.writeString(mText);
    dest.writeString(mUrl);
    dest.writeString(mSms);
    dest.writeString(mEmail);
    dest.writeString(mSubject);
    dest.writeSerializable(mFile);
    dest.writeParcelable(mUri, 0);
}

From source file:com.tigerpenguin.places.model.PlaceDetail.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeList(addressComponents);// w  ww. j av  a2 s .  c o  m
    dest.writeString(formattedAddress);
    dest.writeString(localPhone);
    dest.writeParcelable(geometry, flags);
    dest.writeString(iconUrl);
    dest.writeString(placeId);
    dest.writeString(internationalPhone);
    dest.writeString(name);
    dest.writeParcelable(openingHours, flags);
    dest.writeList(photos);
    dest.writeSerializable(priceLevel);
    dest.writeDouble(rating);
    dest.writeList(reviews);
    dest.writeList(types);
    dest.writeString(googlePlacePageUrl);
    dest.writeInt(utcOffset);
    dest.writeString(vicinity);
    dest.writeString(businessWebsite);
}

From source file:com.scvngr.levelup.core.net.LevelUpResponse.java

@Override
public void writeToParcel(final Parcel dest, final int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(mStatus.name());/*from  w  ww  . j av  a  2 s  .c om*/
    dest.writeTypedList(mServerErrors);
    dest.writeSerializable(mServerErrorReadError);
    dest.writeParcelable(mOriginalResponse, flags);
}