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.patloew.navigationviewfragmentadapters.StateMap.java

@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeInt(map.size());//from   ww  w  .j a va 2 s  .  co m

    for (Map.Entry<String, Fragment.SavedState> e : map.entrySet()) {
        out.writeString(e.getKey());
        out.writeParcelable(e.getValue(), flags);
    }
}

From source file:com.clover.sdk.v1.customer.Address.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    String json = data.toString();
    dest.writeString(json);
}

From source file:vandy.mooc.model.provider.Video.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeLong(id);//from   ww w  .  j a  v  a  2s. c  o  m
    dest.writeString(title);
    dest.writeLong(duration);
    dest.writeString(location);
    dest.writeString(subject);
    dest.writeString(contentType);
    dest.writeDouble(rating);
    dest.writeInt(count);

}

From source file:ru.rzn.myasoedov.vktest.dto.VKChat.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.preview);
    dest.writeString(this.photoUrl);
    dest.writeString(this.customPhotoUrl);
    dest.writeLong(this.date);
}

From source file:com.ch_linghu.fanfoudroid.data.Tweet.java

public void writeToParcel(Parcel out, int flags) {
    out.writeString(id);
    out.writeString(text);/*www  .j av a 2 s.co m*/
    out.writeValue(createdAt); // Date
    out.writeString(screenName);
    out.writeString(favorited);
    out.writeString(inReplyToStatusId);
    out.writeString(inReplyToUserId);
    out.writeString(inReplyToScreenName);
    out.writeString(repostStatusId);
    out.writeString(repostUserId);
    out.writeString(screenName);
    out.writeString(profileImageUrl);
    out.writeString(thumbnail_pic);
    out.writeString(bmiddle_pic);
    out.writeString(original_pic);
    out.writeString(userId);
    out.writeString(source);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.title);
    dest.writeDouble(this.latitude);
    dest.writeDouble(this.longitude);
    dest.writeLong(this.created);
    dest.writeInt(this.checkins);
    dest.writeLong(this.updated);
    dest.writeInt(this.country_id);
    dest.writeInt(this.city_id);
    dest.writeString(address);//from  ww  w. j  av a 2s  .c o m
}

From source file:com.wellsandwhistles.android.redditsp.reddit.things.RedditSubreddit.java

public void writeToParcel(final Parcel out, final int flags) {
    out.writeString(header_img);
    out.writeString(header_title);//ww w. j  av  a 2 s.co m
    out.writeString(description);
    out.writeString(description_html);
    out.writeString(public_description);
    out.writeString(id);
    out.writeString(name);
    out.writeString(title);
    out.writeString(display_name);
    out.writeString(url);
    out.writeLong(created);
    out.writeLong(created_utc);
    out.writeInt(accounts_active == null ? -1 : accounts_active);
    out.writeInt(subscribers == null ? -1 : subscribers);
    out.writeInt(over18 ? 1 : 0);
}

From source file:com.morphoss.jumble.models.Word.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(nameKey);
    dest.writeString(imagePath);//from   w ww .  j  a  v  a 2  s  . c  o  m

    ArrayList<Localisation> valueList = new ArrayList<Localisation>();
    valueList.addAll(localisations.values());

    Localisation[] arr = new Localisation[valueList.size()];
    valueList.toArray(arr);
    dest.writeParcelableArray(arr, 0);

}

From source file:com.nestlabs.sdk.NestConfig.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mClientID);
    dest.writeString(mStateValue);/*from w ww . j a  va 2 s. co  m*/
    dest.writeString(mClientSecret);
    dest.writeString(mRedirectURL);
}

From source file:com.tdispatch.passenger.model.LocationData.java

@Override
public void writeToParcel(Parcel out, int flags) {
    out.writeString(getAddress());
    out.writeString(getPostCode());/*  ww w. ja v  a  2s  .  c o m*/
    out.writeDouble(getLatitude());
    out.writeDouble(getLongitude());
}