Code example for Parcel

Methods: readBooleanArray

0
  } 
 
  // Constructor used by the parcelable functionality of this class 
  protected HeadingItem(Parcel in)
  { 
    super(in);
    boolean[] array = new boolean[1];
    in.readBooleanArray(array);
    mSelected = array[0];
  } 
 
  // Variable used by the parcelable functionality of this class 
  public static final Parcelable.Creator<HeadingItem> CREATOR =
      new Parcelable.Creator<HeadingItem>() 
      { 
        public HeadingItem createFromParcel(Parcel in) 
        { 
          return new HeadingItem(in); 
        } 
 
Experience pair programming with AI  Get Codota for Java