Code example for Parcel

Methods: writeBooleanArraywriteIntwriteStringwriteValue

0
	} 
 
	@Override 
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub 
		dest.writeString(packageName);
		dest.writeString(appName);
		// dest.writeParcelable(icon, 0); 
		dest.writeValue(icon);
		dest.writeInt(versionCode);
		dest.writeString(versionName);
		dest.writeBooleanArray(new boolean[] { isSystemApp });
		dest.writeValue(pkgInfo);
	} 
} 
Experience pair programming with AI  Get Codota for Java