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:moodle.android.moodle.model.Content.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(type);
    dest.writeString(filename);/*  w w w.j  a  v  a2 s. co m*/
    dest.writeString(filepath);
    dest.writeInt(filesize);
    dest.writeString(fileurl);
    dest.writeString(content);
    dest.writeLong(timecreated);
    dest.writeLong(timemodified);
    dest.writeInt(sortorder);
    dest.writeInt(userid);
    dest.writeString(author);
    dest.writeString(license);
}

From source file:com.google.sample.beaconservice.Beacon.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(type);
    dest.writeByteArray(id);/*  w  ww. j  a v a2  s .c  o  m*/
    dest.writeString(status);
    if (placeId != null) {
        dest.writeInt(1);
        dest.writeString(placeId);
    } else {
        dest.writeInt(0);
    }
    if (latitude != null) {
        dest.writeInt(1);
        dest.writeDouble(latitude);
    } else {
        dest.writeInt(0);
    }
    if (longitude != null) {
        dest.writeInt(1);
        dest.writeDouble(longitude);
    } else {
        dest.writeInt(0);
    }
    if (expectedStability != null) {
        dest.writeInt(1);
        dest.writeString(expectedStability);
    } else {
        dest.writeInt(0);
    }
    if (description != null) {
        dest.writeInt(1);
        dest.writeString(description);
    } else {
        dest.writeInt(0);
    }
}

From source file:com.jbirdvegas.mgerrit.objects.GooFileObject.java

@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeInt(mId);/*from   ww  w  . jav  a2s .com*/
    parcel.writeString(mFileName);
    parcel.writeString(mPath);
    parcel.writeString(mFolder);
    parcel.writeString(mMd5);
    parcel.writeString(mType);
    parcel.writeString(mDescription);
    parcel.writeString(String.valueOf(mIsFlashable));
    parcel.writeLong(mModified);
    parcel.writeLong(mDownloads);
    parcel.writeInt(mStatus);
    parcel.writeString(mAdditionalInfo);
    parcel.writeString(mShortUrl);
    parcel.writeInt(mDeveloperId);
    parcel.writeString(mRO_DeveloperId);
    parcel.writeString(mRO_Board);
    parcel.writeString(mRO_Rom);
    parcel.writeInt(mRO_Version);
    parcel.writeLong(mGappsPackage);
    parcel.writeInt(mIncrementalFile);
    parcel.writeString(mGappsLink);
    parcel.writeString(mGappsMd5);
}

From source file:org.immopoly.android.model.Flat.java

public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(uid);/*  w ww  .java 2 s.  c  o m*/
    dest.writeString(name);
    dest.writeString(description);
    dest.writeString(city);
    dest.writeString(titlePictureSmall);
    dest.writeString(priceValue);
    dest.writeString(currency);
    dest.writeString(priceIntervaleType);
    dest.writeDouble(lat);
    dest.writeDouble(lng);
    dest.writeLong(creationDate);
}

From source file:com.csipsimple.models.RemoteLibInfo.java

@Override
public void writeToParcel(Parcel arg0, int arg1) {
    arg0.writeInt(PrimaryKey);/*  w  ww  .ja  va 2  s.  co  m*/
    arg0.writeString(fileName);
    arg0.writeString(filePath.getAbsolutePath());
    arg0.writeString(uri.toString());
    arg0.writeString(version);
    arg0.writeString(label);
    arg0.writeString(changelog);
    arg0.writeString(description);
    arg0.writeString(id);
}

From source file:com.example.accountkitsample.ReverbUIManager.java

@Override
public void writeToParcel(final Parcel dest, final int flags) {
    dest.writeString(confirmButton != null ? confirmButton.name() : null);
    dest.writeString(entryButton != null ? entryButton.name() : null);
    dest.writeString(loginType != null ? loginType.name() : null);
    dest.writeString(textPosition != null ? textPosition.name() : null);
    dest.writeInt(themeResourceId);//  w w w.j  a  v a2  s .c om
}

From source file:com.smoothsync.smoothsetup.microfragments.ChooseProviderMicroFragment.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeParcelableArray(mProviders, flags);
    dest.writeString(mAccount.value(null));
    dest.writeParcelable(mNext.boxed(), flags);
}

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

/**
 * Write Team data to Parcelable. /* w  w  w. jav  a  2 s.c  o  m*/
 */
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeValue(getLeader());
    dest.writeList(getMembers());
    dest.writeInt(getId());
    dest.writeString(getName());
}

From source file:com.getchute.android.photopickerplus.models.MediaResponseModel.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeTypedList(assetList);//from w w w  .  j av  a 2 s. co m
    dest.writeString(clientId);
    dest.writeString(createdAt);
    dest.writeString(storeId);
    dest.writeString(updatedAt);
    dest.writeParcelable(parcel, flags);
    dest.writeParcelable(profile, flags);

}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeList(addressComponents);/*from  w  ww  .j av  a 2s. c om*/
    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);
}