Java Code Examples for android.os.Parcel.readTypedArray()

The following are Jave code examples for showing how to use readTypedArray() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: aos-FileCoreLibrary   File: Workgroup.java   Source Code and License Vote up 5 votes
public Workgroup(Parcel in) {
    mName = in.readString();
    int size = in.readInt();
    Share[] shares =new Share[size];
    in.readTypedArray(shares,Share.CREATOR);
    for (Share s : shares) {
        mShares.add(s);
    }
}
 
Example 2
Project: okwallet   File: PaymentIntent.java   Source Code and License Vote up 5 votes
private PaymentIntent(final Parcel in) {
    standard = (Standard) in.readSerializable();

    payeeName = in.readString();
    payeeVerifiedBy = in.readString();

    final int outputsLength = in.readInt();
    if (outputsLength > 0) {
        outputs = new Output[outputsLength];
        in.readTypedArray(outputs, Output.CREATOR);
    } else {
        outputs = null;
    }

    memo = in.readString();

    paymentUrl = in.readString();

    final int payeeDataLength = in.readInt();
    if (payeeDataLength > 0) {
        payeeData = new byte[payeeDataLength];
        in.readByteArray(payeeData);
    } else {
        payeeData = null;
    }

    paymentRequestUrl = in.readString();

    final int paymentRequestHashLength = in.readInt();
    if (paymentRequestHashLength > 0) {
        paymentRequestHash = new byte[paymentRequestHashLength];
        in.readByteArray(paymentRequestHash);
    } else {
        paymentRequestHash = null;
    }
}