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:net.issarlk.androbunny.inkbunny.File.java

public void writeToParcel(Parcel out, int flag) {
    out.writeInt(this.id);
    out.writeString(this.name);
    out.writeInt(this.thumbnails.length);
    for (int i = this.thumbnails.length - 1; i >= 0; i--) {
        if (this.thumbnails[i] != null) {
            out.writeInt(1);//from w w w.  j  ava2 s  .com
            this.thumbnails[i].writeToParcel(out, 0);
        } else {
            out.writeInt(0);
        }

    }
    out.writeString(this.mimetype);
    out.writeInt(this.submission_id);
    out.writeInt(this.user_id);
    out.writeInt(this.submission_file_order);
    out.writeInt(this.dimensions.length);
    for (int i = this.dimensions.length - 1; i >= 0; i--) {
        if (this.dimensions[i] != null) {
            out.writeInt(1);
            this.dimensions[i].writeToParcel(out, 0);
        } else {
            out.writeInt(0);
        }
    }
    out.writeStringArray(this.md5s);
    out.writeString(this.file_urls[0].toString());
    out.writeString(this.file_urls[1].toString());
    out.writeString(this.file_urls[2].toString());
    out.writeInt(this.deleted);
    out.writeString(this.create_datetime);
    out.writeString(this.create_datetime_usertime);
}

From source file:com.dwg.weibo.entity.Status.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.created_at);
    dest.writeString(this.id);
    dest.writeString(this.mid);
    dest.writeString(this.idstr);
    dest.writeInt(this.textLength);
    dest.writeString(this.text);
    dest.writeByte(this.isLongText ? (byte) 1 : (byte) 0);
    dest.writeInt(this.source_type);
    dest.writeString(this.source);
    dest.writeByte(this.favorited ? (byte) 1 : (byte) 0);
    dest.writeByte(this.truncated ? (byte) 1 : (byte) 0);
    dest.writeString(this.in_reply_to_status_id);
    dest.writeString(this.in_reply_to_user_id);
    dest.writeString(this.in_reply_to_screen_name);
    dest.writeString(this.thumbnail_pic);
    dest.writeString(this.bmiddle_pic);
    dest.writeString(this.original_pic);
    dest.writeParcelable(this.geo, flags);
    dest.writeParcelable(this.user, flags);
    dest.writeParcelable(this.retweeted_status, flags);
    dest.writeInt(this.reposts_count);
    dest.writeInt(this.comments_count);
    dest.writeInt(this.attitudes_count);
    dest.writeInt(this.mlevel);
    dest.writeParcelable(this.visible, flags);
    dest.writeInt(this.source_allowclick);
    dest.writeList(this.pic_urls);
    dest.writeStringList(this.thumbnail_pic_urls);
    dest.writeStringList(this.bmiddle_pic_urls);
    dest.writeStringList(this.origin_pic_urls);
    dest.writeString(this.singleImgSizeType);
}

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

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

From source file:com.adrguides.model.Guide.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(getAddress());
    parcel.writeString(getTitle());//  ww w  .  jav  a 2s  .c  o  m
    parcel.writeString(getDescription());
    parcel.writeString(getAuthor());
    parcel.writeString(getKeywords());
    parcel.writeString(getLanguage());
    parcel.writeString(getCountry());
    parcel.writeString(getVariant());
    parcel.writeTypedList(getPlaces());
    parcel.writeInt(isStored() ? 1 : 0);
}

From source file:it_minds.dk.eindberetningmobil_android.models.DrivingReport.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.Uuid);
    dest.writeString(this.purpose);
    dest.writeString(this.orgLocation);
    dest.writeString(this.Rate);
    dest.writeString(this.extraDescription);
    dest.writeByte(haveEditedDistance ? (byte) 1 : (byte) 0);
    dest.writeByte(startedAtHome ? (byte) 1 : (byte) 0);
    dest.writeByte(endedAtHome ? (byte) 1 : (byte) 0);
    dest.writeByte(fourKMRule ? (byte) 1 : (byte) 0);
    dest.writeSerializable(this.startTime);
    dest.writeSerializable(this.endTime);
    dest.writeDouble(this.distanceInMeters);
    dest.writeTypedList(gpsPoints);/*from www.ja  v a2 s. c o m*/
    dest.writeDouble(this.homeToBorderDistance);
}

From source file:com.fanfou.app.opensource.api.bean.DirectMessage.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.senderId);
    dest.writeString(this.recipientId);
    dest.writeString(this.text);

    dest.writeString(this.senderScreenName);
    dest.writeString(this.recipientScreenName);
    dest.writeString(this.senderProfileImageUrl);
    dest.writeString(this.recipientProfileImageUrl);

    dest.writeString(this.threadUserId);
    dest.writeString(this.threadUserName);

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

}

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

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.mErn);
    dest.writeString(this.mStreet);
    dest.writeString(this.mCity);
    dest.writeString(this.mZipcode);
    dest.writeParcelable(this.mCountry, flags);
    dest.writeDouble(this.mLatitude);
    dest.writeDouble(this.mLongitude);
    dest.writeString(this.mDealerUrl);
    dest.writeString(this.mDealerId);
    dest.writeParcelable(this.mBranding, flags);
    dest.writeString(this.mContact);
    dest.writeParcelable(this.mDealer, flags);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeInt(this.to_id);
    dest.writeInt(this.from_id);
    dest.writeLong(this.date);
    dest.writeString(this.text);
    dest.writeInt(this.reply_owner_id);
    dest.writeInt(this.reply_post_id);
    dest.writeByte(friends_only ? (byte) 1 : (byte) 0);
    dest.writeInt(this.comments_count);
    dest.writeByte(can_post_comment ? (byte) 1 : (byte) 0);
    dest.writeInt(this.likes_count);
    dest.writeByte(user_likes ? (byte) 1 : (byte) 0);
    dest.writeByte(can_like ? (byte) 1 : (byte) 0);
    dest.writeByte(can_publish ? (byte) 1 : (byte) 0);
    dest.writeInt(this.reposts_count);
    dest.writeByte(user_reposted ? (byte) 1 : (byte) 0);
    dest.writeString(this.post_type);
    dest.writeParcelable(attachments, flags);
    dest.writeParcelable(this.geo, flags);
    dest.writeInt(this.signer_id);
}

From source file:com.paymaya.sdk.android.checkout.models.Checkout.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(totalAmount, flags);
    dest.writeParcelable(buyer, flags);/*from w  w w.  j a v  a  2s  .c o m*/
    dest.writeTypedList(itemList);
    dest.writeParcelable(redirectUrl, flags);
    dest.writeString(requestReferenceNumber);
    dest.writeByte((byte) (isAutoRedirect ? 1 : 0));
    if (metadata != null) {
        dest.writeString(metadata.toString());
    }
}

From source file:com.markupartist.sthlmtraveling.provider.planner.JourneyQuery.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelable(origin, 0);// w ww .j  a v  a 2s .  c o  m
    dest.writeParcelable(destination, 0);
    dest.writeParcelable(via, 0);
    dest.writeString(time.format2445());
    dest.writeInt(isTimeDeparture ? 1 : 0);
    dest.writeInt(alternativeStops ? 1 : 0);
    dest.writeStringList(transportModes);
    dest.writeString(ident);
    dest.writeString(seqnr);
}