Example usage for android.os Parcel writeString

List of usage examples for android.os Parcel writeString

Introduction

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

Prototype

public final void writeString(String val) 

Source Link

Document

Write a string value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Usage

From source file:com.schedjoules.eventdiscovery.framework.microfragments.eventdetails.EventLoaderMicroFragment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mEventUid);
}

From source file:br.ufrj.ppgi.jemf.mobile.bean.Commander.java

/**
 * Write Commander data to Parcelable. //from  ww  w. ja  v  a 2 s  .  co  m
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(getId());
    dest.writeString(getName());
    dest.writeInt(getGender());
    dest.writeString(getBirthDateString());
    dest.writeInt(getAge());
    dest.writeString(getLogin());
    dest.writeString(getPassword());
}

From source file:com.eTilbudsavis.etasdk.model.Session.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mToken);
    dest.writeLong(mExpires != null ? mExpires.getTime() : -1);
    dest.writeParcelable(this.mUser, flags);
    dest.writeParcelable(this.mPermission, flags);
    dest.writeString(this.mProvider);
    dest.writeString(this.mClientId);
    dest.writeString(this.mReference);
}

From source file:com.vk.sdk.api.model.VKApiUser.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.first_name);
    dest.writeString(this.last_name);
    dest.writeByte(online ? (byte) 1 : (byte) 0);
    dest.writeByte(online_mobile ? (byte) 1 : (byte) 0);
    dest.writeString(this.photo_50);
    dest.writeString(this.photo_100);
    dest.writeString(this.photo_200);
    dest.writeParcelable(this.photo, flags);
    dest.writeString(this.full_name);
}

From source file:fr.cph.chicago.entity.BikeStation.java

@Override
public final void writeToParcel(final Parcel dest, final int flags) {
    dest.writeInt(id);/*  ww w .j a  v  a 2  s .co m*/
    dest.writeString(name);
    dest.writeInt(availableDocks);
    dest.writeInt(totalDocks);
    dest.writeDouble(latitude);
    dest.writeDouble(longitude);
    dest.writeString(statusValue);
    dest.writeString(statusKey);
    dest.writeInt(availableBikes);
    dest.writeString(stAddress1);
    dest.writeString(stAddress2);
    dest.writeString(city);
    dest.writeString(postalCode);
    dest.writeString(location);
    dest.writeString(altitude);
    dest.writeString(String.valueOf(testStation));
    dest.writeString(lastCommunicationTime);
    dest.writeString(landMark);
}

From source file:com.codebutler.farebot.card.desfire.DesfireFile.java

public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeInt(mId);/*w  w  w  .  j a  v  a2s  .  c o  m*/
    if (this instanceof InvalidDesfireFile) {
        parcel.writeInt(1);
        parcel.writeString(((InvalidDesfireFile) this).getErrorMessage());
    } else {
        parcel.writeInt(0);
        parcel.writeParcelable(mSettings, 0);
        parcel.writeInt(mData.length);
        parcel.writeByteArray(mData);
    }
}

From source file:com.krayzk9s.imgurholo.libs.JSONParcelable.java

@Override
public void writeToParcel(Parcel dest, int flags) {

    // We just need to write each field into the
    // parcel. When we read from parcel, they
    // will come back in the same order
    dest.writeString(jsonData.toString());
}

From source file:com.citrus.sdk.payment.NetbankingOption.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.bankName);
    dest.writeString(this.bankCID);
    dest.writeString(this.name);
    dest.writeString(this.token);
}

From source file:com.github.michalbednarski.intentslab.browser.ApplicationFetcher.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(appType);
    dest.writeString(requireMetaDataSubstring);
}

From source file:com.vk.sdk.api.model.VKApiPhotoAlbum.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.title);
    dest.writeInt(this.size);
    dest.writeInt(this.privacy);
    dest.writeString(this.description);
    dest.writeInt(this.owner_id);
    dest.writeByte(can_upload ? (byte) 1 : (byte) 0);
    dest.writeLong(this.updated);
    dest.writeLong(this.created);
    dest.writeInt(this.thumb_id);
    dest.writeString(this.thumb_src);
    dest.writeParcelable(this.photo, flags);
}