Code example for Parcel

Methods: createIntArray

0
 
    public static final Creator<LedAnimation> CREATOR = new Creator<LedAnimation>() {
 
        public LedAnimation createFromParcel(Parcel parcel) 
        { 
            return new LedAnimation(parcel.createIntArray()); 
        } 
 
        public LedAnimation[] newArray(int size) 
        { 
            return new LedAnimation[size]; 
        } 
 
    }; 
 
 
}