Parcel readString - 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 readString 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: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:readParcelable, readString
        dest.writeParcelable(valuesForNewTasks, 0);
    } 
 
    @Override 
    public void readFromParcel(Parcel source) {
        super.readFromParcel(source);
        title = source.readString();
        sqlQuery = source.readString();
        valuesForNewTasks = source.readParcelable(ContentValues.class.getClassLoader());
    } 
 
    /** 
     * Parcelable Creator Object 
     */ 
    public static final Parcelable.Creator<Filter> CREATOR = new Parcelable.Creator<Filter>() {
 
        /** 
         * {@inheritDoc} 
         */ 
        public Filter createFromParcel(Parcel source) { 
8
CodeRank
This code example shows how to use the following methods:readLong, readString
     * @param source 
     *            Parcel to save to. 
     * @throws IOException 
     */ 
    public void readFromParcel(Parcel source) throws IOException {
        id = source.readString();
        transactionId = source.readLong();
    } 
 
} 
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:readString
public class EditTextPreference extends DialogPreference {
    private static class SavedState extends BaseSavedState {
        String text;
 
        public SavedState(Parcel source) {
            super(source);
            text = source.readString();
        } 
 
        public SavedState(Parcelable superState) {
            super(superState);
        } 
 
        @Override 
        public void writeToParcel(Parcel dest, int flags) {
            super.writeToParcel(dest, flags);
            dest.writeString(text);
        } 
    } 
 
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

Related Parcel readString Questions & Answers:

readString Method Overview
Read a string value from the parcel at the current dataPosition().
See Code Examples for other Android Parcel Methods: