Parcel readInt - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Parcel readInt method.

This code example shows how to use the following methods:readDouble, readInt, readLong, readString
 
    public Phone() {} 
 
    // Parcelable management 
    private Phone(Parcel in) {
        serverId = in.readLong();
        name = in.readString();
        manufacturer = in.readString();
        androidVersion = in.readString();
        screenSize = in.readDouble();
        price = in.readInt();
    } 
 
    public int describeContents() { 
        return 0; 
    } 
 
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(serverId);
        dest.writeString(name);
8
CodeRank
This code example shows how to use the following methods:createIntArray, readInt, readLong, readString, readStringList
    public RssFeed() { 
    } 
 
    // Parcelable management 
    private RssFeed(final Parcel in) {
        title = in.readString();
        link = in.readString();
        description = in.readString();
 
        pubDate = in.readLong();
        lastBuildDate = in.readLong();
 
        language = in.readString();
        copyright = in.readString();
        generator = in.readString();
 
        imageWebsiteLink = in.readString();
        imageTitle = in.readString();
        imageUrl = in.readString();
        imageWidth = in.readInt();

8
CodeRank
This code example shows how to use the following methods:createStringArrayList, readInt, readLong, readParcelable, readString
    public static final Parcelable.Creator<VpnConfig> CREATOR =
            new Parcelable.Creator<VpnConfig>() { 
        @Override 
        public VpnConfig createFromParcel(Parcel in) { 
            VpnConfig config = new VpnConfig(); 
            config.user = in.readString(); 
            config.interfaze = in.readString(); 
            config.session = in.readString(); 
            config.mtu = in.readInt(); 
            config.addresses = in.readString(); 
            config.routes = in.readString(); 
            config.dnsServers = in.createStringArrayList(); 
            config.searchDomains = in.createStringArrayList(); 
            config.configureIntent = in.readParcelable(null); 
            config.startTime = in.readLong(); 
            return config; 
        } 
 
        @Override 
        public VpnConfig[] newArray(int size) { 
8
CodeRank
This code example shows how to use the following methods:readBundle, readInt
    private static class SavedState extends BaseSavedState {
        Bundle dialogBundle;
        boolean isDialogShowing;
 
        public SavedState(Parcel source) {
            super(source);
            isDialogShowing = source.readInt() == 1;
            dialogBundle = source.readBundle();
        } 
 
        public SavedState(Parcelable superState) {
            super(superState);
        } 
 
        @Override 
        public void writeToParcel(Parcel dest, int flags) {
            super.writeToParcel(dest, flags);
            dest.writeInt(isDialogShowing ? 1 : 0);
            dest.writeBundle(dialogBundle);
        } 
8
CodeRank
This code example shows how to use the following methods:readInt, readLong, readString
    this.relayPort  = relayPort;
    this.sessionId  = sessionId;
  } 
 
  public SessionDescriptor(Parcel in) {
    this.relayPort  = in.readInt();
    this.sessionId  = in.readLong();
    this.serverName = in.readString();
  } 
 
  public String getFullServerName() {
    return serverName + Release.SERVER_ROOT;
  } 
 
  @Override 
  public boolean equals(Object other) {
    if (other == null)                         return false;
    if (!(other instanceof SessionDescriptor)) return false;
 
    SessionDescriptor that = (SessionDescriptor)other;
8
CodeRank
This code example shows how to use the following methods:createTypedArrayList, readInt, readParcelable, readString
8
CodeRank
This code example shows how to use the following methods:readDouble, readInt, readLong, readString
 
    public Phone() {} 
 
    // Parcelable management 
    private Phone(Parcel in) {
        serverId = in.readLong();
        name = in.readString();
        manufacturer = in.readString();
        androidVersion = in.readString();
        screenSize = in.readDouble();
        price = in.readInt();
    } 
 
    public int describeContents() { 
        return 0; 
    } 
 
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(serverId);
        dest.writeString(name);
8
CodeRank
This code example shows how to use the following methods:readInt, readLong, readParcelable, readString
        /** 
         * Helper for making subclasses parcelable. 
         */ 
        protected void readFromParcel(Parcel p) {
            final ClassLoader loader = getClass().getClassLoader();
            type = p.readInt();
            label = p.readString();
            data = p.readString();
            uri = p.readParcelable(loader);
            id = p.readLong();
            maxLines = p.readInt();
            mimetype = p.readString();
        } 
    } 
 
    ContactEntryAdapter(Context context, ArrayList<ArrayList<E>> sections, boolean separators) {
        mContext = context;
        mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        mSections = sections;
        mSeparators = separators;
7
CodeRank
This code example shows how to use the following methods:readInt, readParcelable, readString
	public void setUser(GCUserModel user) {
		this.user = user;
	} 
 
	public GCAccountModel(Parcel in) {
		id = in.readString();
		type = in.readString();
		name = in.readString();
		uid = in.readString();
		status = in.readInt();
		notificationsEnabled = in.readInt() == 1;
		user = in.readParcelable(GCUserModel.class.getClassLoader());
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see android.os.Parcelable#describeContents() 
	 */ 
	@Override 
7
CodeRank
This code example shows how to use the following methods:readByteArray, readDouble, readInt, readLong, readParcelable
	ACtxHistoryAttribute(final ACtxAttributeIdentifier attrId, 
			final Date lastModified, final Date lastUpdated,
			final String stringValue, final Integer integerValue,
			final Double doubleValue, final byte[] binaryValue,
			final CtxAttributeValueType valueType, final String valueMetric) {
		 
		super(attrId);
		super.setLastModified(lastModified);
		this.lastUpdated = lastUpdated;
		this.stringValue = stringValue;
		this.integerValue = integerValue;
		this.doubleValue = doubleValue;
		this.binaryValue = binaryValue;
		this.valueType = valueType;
		this.valueMetric = valueMetric;
	} 
	 
	/** 
	 * Making class Parcelable 
	 */ 

7
CodeRank

Related Parcel readInt Questions & Answers:

readInt Method Overview
Read an integer value from the parcel at the current dataPosition().
See Code Examples for other Android Parcel Methods: