Example usage for android.os Parcel readStringArray

List of usage examples for android.os Parcel readStringArray

Introduction

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

Prototype

public final void readStringArray(String[] val) 

Source Link

Usage

From source file:org.imaginationforpeople.android2.model.Picture.java

private Picture(Parcel in) {
    id = in.readInt();/*from   w  w  w  .jav a 2 s . c  o m*/
    String[] stringData = new String[7];
    in.readStringArray(stringData);
    author = stringData[0];
    created = stringData[1];
    desc = stringData[2];
    license = stringData[3];
    source = stringData[4];
    thumbUrl = stringData[5];
    imageUrl = stringData[6];
}

From source file:org.opendatakit.common.android.data.RawRow.java

public RawRow(RawUserTable userTable, Parcel in) {
    this.mUserTable = userTable;
    this.mRowId = in.readString();
    int count;//from  w ww .  j  a  va2  s.  c  o m
    count = in.readInt();
    this.mRowData = new String[count];
    in.readStringArray(mRowData);
}

From source file:org.opendatakit.common.android.data.Row.java

public Row(UserTable userTable, Parcel in) {
    this.mUserTable = userTable;
    this.mRowId = in.readString();
    int count;/* w w  w.j a v  a  2  s  .  co m*/
    count = in.readInt();
    this.mRowData = new String[count];
    in.readStringArray(mRowData);
}

From source file:com.baasbox.android.BaasUser.java

private static void readStringSet(Parcel p, Set<String> set) {
    int size = p.readInt();
    String[] arr = new String[size];
    p.readStringArray(arr);
    Collections.addAll(set, arr);
}

From source file:com.aokyu.dev.pocket.content.Page.java

private Page(Parcel in) {
    super(in.readString());
    mResolvedId = in.readString();/*from  w  w w  .  ja va 2 s.  c o  m*/
    mGivenUrl = in.readString();
    mResolvedUrl = in.readString();
    mGivenTitle = in.readString();
    mResolvedTitle = in.readString();
    mIsFavorited = (in.readInt() == 1);
    mState = PageState.valueOf(in.readInt());
    mExcerpt = in.readString();
    mIsArticle = (in.readInt() == 1);
    mImageState = ImageState.valueOf(in.readInt());
    mVideoState = VideoState.valueOf(in.readInt());
    mWordCount = in.readInt();
    in.readStringArray(mTags);
    in.readStringArray(mAuthors);
    mImages = (Image[]) in.readParcelableArray(Image.class.getClassLoader());
    mVideos = (Video[]) in.readParcelableArray(Video.class.getClassLoader());
}

From source file:net.issarlk.androbunny.inkbunny.File.java

public File(Parcel in) {
    this.id = in.readInt();
    this.name = in.readString();
    this.thumbnails = new Thumbnail[in.readInt()];
    for (int i = this.thumbnails.length - 1; i >= 0; i--) {
        if (in.readInt() == 1) {
            this.thumbnails[i] = Thumbnail.CREATOR.createFromParcel(in);
        }//from  w  w  w  . ja va2  s  .c o  m
    }
    this.mimetype = in.readString();
    this.submission_id = in.readInt();
    this.user_id = in.readInt();
    this.submission_file_order = in.readInt();
    this.dimensions = new Dimension2D[in.readInt()];
    for (int i = this.dimensions.length - 1; i >= 0; i--) {
        if (in.readInt() == 1) {
            this.dimensions[i] = Dimension2D.CREATOR.createFromParcel(in);
        }
    }
    this.md5s = new String[5];
    in.readStringArray(this.md5s);
    this.file_urls = new URI[3];
    for (int i = 0; i < 3; i++) {
        String tmp = in.readString();
        if (tmp != null) {
            try {
                this.file_urls[i] = new URI(tmp);
            } catch (URISyntaxException e) {
                Log.e(TAG, e.toString());
            }
        }
    }
    this.deleted = in.readInt();
    this.create_datetime = in.readString();
    this.create_datetime_usertime = in.readString();
}