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.vk.sdk.api.model.VKApiWikiPage.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.group_id);
    dest.writeInt(this.creator_id);
    dest.writeString(this.title);
    dest.writeString(this.source);
    dest.writeByte(current_user_can_edit ? (byte) 1 : (byte) 0);
    dest.writeByte(current_user_can_edit_access ? (byte) 1 : (byte) 0);
    dest.writeInt(this.who_can_view);
    dest.writeInt(this.who_can_edit);
    dest.writeInt(this.editor_id);
    dest.writeLong(this.edited);
    dest.writeLong(this.created);
    dest.writeString(this.parent);
    dest.writeString(this.parent2);
}

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

@Override
public void writeToParcel(Parcel dest, int arg1) {
    dest.writeString(baseUrl);
    dest.writeString(userIdentifier);/*from  w  w  w .j a v  a  2s . c  om*/
    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:com.notalenthack.blaster.Command.java

@Override
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeString(mName);
    parcel.writeString(mCommandStart);//w w w  .ja v  a 2s.  com
    parcel.writeString(mCommandStop);
    parcel.writeString(mCommandStat);
    parcel.writeInt(mCommandResId);
    parcel.writeInt(mStatus.ordinal());
    parcel.writeInt(mKillMethod.ordinal());
    parcel.writeInt(mCpuUsage);
    parcel.writeByte((byte) (mDisplayOutput ? 1 : 0));
    parcel.writeByte((byte) (mDisplayStatus ? 1 : 0));
    parcel.writeByte((byte) (mSystemCmd ? 1 : 0));
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.owner_id);
    dest.writeLong(this.created);
    dest.writeString(this.question);
    dest.writeInt(this.votes);
    dest.writeInt(this.answer_id);
    dest.writeParcelable(this.answers, flags);
}

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

public void writeToParcel(Parcel out, int flags) {
    out.writeLong(nID);/*from  ww w. j av a  2 s.  c  om*/
    out.writeString(sTitle);
    out.writeString(sLayerName);
    out.writeString(sWKT);
    out.writeInt(bSMSEnable == true ? 1 : 0);
    out.writeInt(bHasNews == true ? 1 : 0);
    //
    out.writeInt(mmoItems.size());
    for (ScanexNotificationItem it : mmoItems.values()) {
        out.writeValue(it);
    }
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(size());/*from   w w w  .java2s  . c o m*/
    for (VKApiAttachment attachment : this) {
        dest.writeString(attachment.getType());
        dest.writeParcelable(attachment, 0);
    }
}

From source file:io.openkit.OKAchievement.java

@Override
public void writeToParcel(Parcel out, int flags) {
    //private String name;
    out.writeString(name);
    //private int OKAPP_id;
    out.writeInt(OKAPP_id);// w w  w.  j a v  a 2s .  c om
    //private int achievementId;
    out.writeInt(achievementId);
    //private boolean inDevelopment;
    out.writeInt(boolToInt(inDevelopment));
    //private String unlockedIconUrl;
    out.writeString(unlockedIconUrl);
    //private String lockedIconUrl;
    out.writeString(lockedIconUrl);
    //private int points;
    out.writeInt(points);
    //private int goal;
    out.writeInt(goal);
    //private int progress;
    out.writeInt(progress);
    //private String description
    out.writeString(description);
}

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

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

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

public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.mLength);
    dest.writeInt(this.mOffset);
    dest.writeString(this.mSubject);
}

From source file:com.fanfou.app.opensource.api.bean.User.java

@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(this.id);
    dest.writeString(this.ownerId);
    dest.writeLong(this.createdAt.getTime());
    dest.writeInt(this.type);

    dest.writeString(this.screenName);
    dest.writeString(this.location);
    dest.writeString(this.gender);
    dest.writeString(this.birthday);

    dest.writeString(this.description);
    dest.writeString(this.profileImageUrl);
    dest.writeString(this.url);
    dest.writeInt(this.protect ? 1 : 0);

    dest.writeInt(this.followersCount);
    dest.writeInt(this.friendsCount);
    dest.writeInt(this.favouritesCount);
    dest.writeInt(this.statusesCount);

    dest.writeInt(this.following ? 1 : 0);

}