Code example for Parcel

Methods: writeParcelablewriteStringArray

    public int describeContents() { return 0; } 
    public void writeToParcel(final Parcel dest, final int flags) {
      dest.writeParcelable(intent, flags);
    private void cacheStreams() { 
      this.cachedStreams = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
    /** @return whether this intent has one of send actions */ 
    public boolean isShareIntent() { 
      return isSingleShare() || isMultipleShare(); 
    /** @return whether this intent has action {@link Intent#ACTION_SEND} */ 
    public boolean isSingleShare() { 
      return Intent.ACTION_SEND.equals(intent.getAction());
Stop searching for code, let great code find you!  Add Codota to your java IDE