Example usage for android.os Parcel writeStringArray

List of usage examples for android.os Parcel writeStringArray

Introduction

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

Prototype

public final void writeStringArray(String[] val) 

Source Link

Usage

From source file:com.vk.sdkweb.api.model.VKApiUserFull.java

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.activity);
    dest.writeParcelable(this.status_audio, flags);
    dest.writeString(this.bdate);
    dest.writeParcelable(this.city, flags);
    dest.writeParcelable(this.country, flags);
    dest.writeLong(this.last_seen);
    dest.writeParcelable(this.universities, flags);
    dest.writeParcelable(this.schools, flags);
    dest.writeInt(this.smoking);
    dest.writeInt(this.alcohol);
    dest.writeInt(this.political);
    dest.writeInt(this.life_main);
    dest.writeInt(this.people_main);
    dest.writeString(this.inspired_by);
    dest.writeStringArray(this.langs);
    dest.writeString(this.religion);
    dest.writeString(this.facebook);
    dest.writeString(this.facebook_name);
    dest.writeString(this.livejournal);
    dest.writeString(this.skype);
    dest.writeString(this.site);
    dest.writeString(this.twitter);
    dest.writeString(this.instagram);
    dest.writeString(this.mobile_phone);
    dest.writeString(this.home_phone);
    dest.writeString(this.screen_name);
    dest.writeString(this.activities);
    dest.writeString(this.interests);
    dest.writeString(this.movies);
    dest.writeString(this.tv);
    dest.writeString(this.books);
    dest.writeString(this.games);
    dest.writeString(this.about);
    dest.writeString(this.quotes);
    dest.writeByte(can_post ? (byte) 1 : (byte) 0);
    dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0);
    dest.writeByte(can_write_private_message ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_comments ? (byte) 1 : (byte) 0);
    dest.writeByte(is_banned ? (byte) 1 : (byte) 0);
    dest.writeByte(is_deleted ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_default_owner ? (byte) 1 : (byte) 0);
    dest.writeByte(verified ? (byte) 1 : (byte) 0);
    dest.writeInt(this.sex);
    dest.writeParcelable(this.counters, flags);
    dest.writeInt(this.relation);
    dest.writeParcelable(this.relatives, flags);
    dest.writeByte(blacklisted_by_me ? (byte) 1 : (byte) 0);
}

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

@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(this.activity);
    dest.writeParcelable(this.status_audio, flags);
    dest.writeString(this.bdate);
    dest.writeParcelable(this.city, flags);
    dest.writeParcelable(this.country, flags);
    dest.writeLong(this.last_seen);
    dest.writeParcelable(this.universities, flags);
    dest.writeParcelable(this.schools, flags);
    dest.writeInt(this.smoking);
    dest.writeInt(this.alcohol);
    dest.writeInt(this.political);
    dest.writeInt(this.life_main);
    dest.writeInt(this.people_main);
    dest.writeString(this.inspired_by);
    dest.writeStringArray(this.langs);
    dest.writeString(this.religion);
    dest.writeString(this.facebook);
    dest.writeString(this.facebook_name);
    dest.writeString(this.livejournal);
    dest.writeString(this.skype);
    dest.writeString(this.site);
    dest.writeString(this.twitter);
    dest.writeString(this.instagram);
    dest.writeString(this.mobile_phone);
    dest.writeString(this.home_phone);
    dest.writeString(this.screen_name);
    dest.writeString(this.activities);
    dest.writeString(this.interests);
    dest.writeString(this.movies);
    dest.writeString(this.tv);
    dest.writeString(this.books);
    dest.writeString(this.games);
    dest.writeString(this.about);
    dest.writeString(this.quotes);
    dest.writeByte(can_post ? (byte) 1 : (byte) 0);
    dest.writeByte(can_see_all_posts ? (byte) 1 : (byte) 0);
    dest.writeByte(can_write_private_message ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_comments ? (byte) 1 : (byte) 0);
    dest.writeByte(is_banned ? (byte) 1 : (byte) 0);
    dest.writeByte(is_deleted ? (byte) 1 : (byte) 0);
    dest.writeByte(wall_default_owner ? (byte) 1 : (byte) 0);
    dest.writeByte(verified ? (byte) 1 : (byte) 0);
    dest.writeInt(this.sex);
    dest.writeParcelable(this.counters, flags);
    dest.writeParcelable(this.occupation, flags);
    dest.writeInt(this.relation);
    dest.writeParcelable(this.relatives, flags);
    dest.writeByte(blacklisted_by_me ? (byte) 1 : (byte) 0);
}

From source file:android.app.Notification.java

/**
 * Flatten this notification from a parcel.
 */// ww  w  .j a va  2s.c om
public void writeToParcel(Parcel parcel, int flags) {
    parcel.writeInt(1);

    parcel.writeLong(when);
    parcel.writeInt(icon);
    parcel.writeInt(number);
    if (contentIntent != null) {
        parcel.writeInt(1);
        contentIntent.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }
    if (deleteIntent != null) {
        parcel.writeInt(1);
        deleteIntent.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }
    if (tickerText != null) {
        parcel.writeInt(1);
        TextUtils.writeToParcel(tickerText, parcel, flags);
    } else {
        parcel.writeInt(0);
    }
    if (tickerView != null) {
        parcel.writeInt(1);
        tickerView.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }
    if (contentView != null) {
        parcel.writeInt(1);
        contentView.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }
    if (largeIcon != null) {
        parcel.writeInt(1);
        largeIcon.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }

    parcel.writeInt(defaults);
    parcel.writeInt(this.flags);

    if (sound != null) {
        parcel.writeInt(1);
        sound.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }
    parcel.writeInt(audioStreamType);
    parcel.writeLongArray(vibrate);
    parcel.writeInt(ledARGB);
    parcel.writeInt(ledOnMS);
    parcel.writeInt(ledOffMS);
    parcel.writeInt(iconLevel);

    if (fullScreenIntent != null) {
        parcel.writeInt(1);
        fullScreenIntent.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }

    parcel.writeInt(priority);

    parcel.writeStringArray(kind); // ok for null

    if (extras != null) {
        parcel.writeInt(1);
        extras.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }

    parcel.writeTypedArray(actions, 0);

    if (bigContentView != null) {
        parcel.writeInt(1);
        bigContentView.writeToParcel(parcel, 0);
    } else {
        parcel.writeInt(0);
    }
}