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

The following are Jave code examples for showing how to use readArray() 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: data-mediator   File: HistoryData.java   Source Code and License Vote up 6 votes
protected HistoryData(Parcel in) {
    this.age = in.readInt();
    this.id = in.readLong();
    this.testShort = (short) in.readInt();
    this.testByte = in.readByte();
    this.testBoolean = in.readByte() != 0;
    this.testFloat = in.readFloat();
    this.testDouble = in.readDouble();
    this.testChar = (char) in.readInt();
    this.testLONG = (Long) in.readValue(Long.class.getClassLoader());
    this.testDOUBLE = (Double) in.readValue(Double.class.getClassLoader());
    this.testCharacter = (Character) in.readSerializable();
    this.testBOOLEAN = (Boolean) in.readValue(Boolean.class.getClassLoader());
    this.testSHORT = (Short) in.readValue(Short.class.getClassLoader());
    this.name = in.readString();
    this.data = in.readParcelable(ResultData.class.getClassLoader());
    this.datas = in.createTypedArrayList(ResultData.CREATOR);
    this.testArrayResultData = in.createTypedArray(ResultData.CREATOR);
    this.testArrayInt = in.createIntArray();
    this.testArrayInteger = (Integer[]) in.readArray(Integer[].class.getClassLoader());
}
 
Example 2
Project: Cybernet-VPN   File: LogItem.java   Source Code and License Vote up 5 votes
public LogItem(Parcel in) {
    mArgs = in.readArray(Object.class.getClassLoader());
    mMessage = in.readString();
    mRessourceId = in.readInt();
    mLevel = VpnStatus.LogLevel.getEnumByValue(in.readInt());
    mVerbosityLevel = in.readInt();
    logtime = in.readLong();
}