Example usage for android.os Parcel readString

List of usage examples for android.os Parcel readString

Introduction

In this page you can find the example usage for android.os Parcel readString.

Prototype

public final String readString() 

Source Link

Document

Read a string value from the parcel at the current dataPosition().

Usage

From source file:it.polimi.geinterface.DAO.Entity.java

public Entity(Parcel parcel) {
    this.entityID = parcel.readString();
    this.entityType = Type.valueOf(parcel.readString());
    this.distanceRange = DistanceRange.valueOf(parcel.readString());

    JSONParser parser = new JSONParser();
    try {//w  w  w . j av  a  2  s .co m
        this.properties = (JSONObject) parser.parse(parcel.readString());
    } catch (ParseException e) {
        e.printStackTrace();
    }
}

From source file:br.ufrj.ppgi.jemf.mobile.bean.Team.java

/**
 * Team Parcelable Constructor.//from   ww w  .j ava 2s. co m
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Team(Parcel in) {
    super(extractedLeader(in), extractedMembers(in));
    setId(in.readInt());
    setName(in.readString());
}

From source file:br.ufrj.ppgi.jemf.mobile.bean.Commander.java

/**
 * Commander Parcelable Constructor./*from   w w  w. jav  a 2  s  .c  om*/
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Commander(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setGender(in.readInt());
    setBirthDateString(in.readString());
    setAge(in.readInt());
    setLogin(in.readString());
    setPassword(in.readString());
}

From source file:br.ufrj.ppgi.jemf.mobile.bean.Medical.java

/**
 * Medical Parcelable Constructor.//  ww w  .j a  v a 2 s  . c  om
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Medical(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setGender(in.readInt());
    setBirthDateString(in.readString());
    setAge(in.readInt());
    setLogin(in.readString());
    setPassword(in.readString());
}

From source file:br.ufrj.ppgi.jemf.mobile.bean.Responder.java

/**
 * Responder Parcelable Constructor.//from   w  w  w.  jav  a 2 s.  c  o  m
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Responder(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setGender(in.readInt());
    setBirthDateString(in.readString());
    setAge(in.readInt());
    setLogin(in.readString());
    setPassword(in.readString());
}

From source file:br.ufrj.ppgi.jemf.mobile.bean.Volunteer.java

/**
 * Volunteer Parcelable Constructor.//  w  w w.ja v  a  2  s  .co m
 * Parcelable to get passed among activities through Intent (similar to Serialization).
 * Attention to class members order an this use FIFO method.
 */
private Volunteer(Parcel in) {
    setId(in.readInt());
    setName(in.readString());
    setGender(in.readInt());
    setBirthDateString(in.readString());
    setAge(in.readInt());
    setLogin(in.readString());
    setPassword(in.readString());
}

From source file:com.example.testmoodle.util.Document.java

private Document(Parcel in) {
    this.type = in.readString();
    this.fileName = in.readString();
    this.filePath = in.readString();
    this.fileSize = in.readInt();
    this.fileURL = in.readString();
    this.content = in.readString();
    this.timeCreated = in.readLong();
    this.timeModified = in.readLong();
    this.sortedOrder = in.readInt();
    this.userID = in.readInt();
    this.author = in.readString();
    this.license = in.readString();
}

From source file:com.oasisfeng.nevo.StatusBarNotificationEvo.java

private StatusBarNotificationEvo(final Parcel in) {
    super(in.readString(), null, in.readInt(), in.readInt() != 0 ? in.readString() : null, in.readInt(), 0, 0,
            NULL_NOTIFICATION, UserHandle.readFromParcel(in), in.readLong());
    holder = INotification.Stub.asInterface(in.readStrongBinder());
}

From source file:de.lebenshilfe_muenster.uk_gebaerden_muensterland.database.Sign.java

/**
 * Constructor for a sign which has been parcelled.
 *
 * @param in an Android parcel./*  www  .  jav a 2 s.co  m*/
 */
private Sign(Parcel in) {
    this.id = in.readInt();
    this.name = in.readString();
    this.nameLocaleDe = in.readString();
    this.mnemonic = in.readString();
    this.starred = (boolean) in.readValue(getClass().getClassLoader());
    this.learningProgress = in.readInt();
}

From source file:se.leap.bitmaskclient.Provider.java

private Provider(Parcel in) {
    try {/*from www. j  ava2s  .c om*/
        main_url.setUrl(new URL(in.readString()));
        String definition_string = in.readString();
        if (!definition_string.isEmpty())
            definition = new JSONObject((definition_string));
    } catch (MalformedURLException | JSONException e) {
        e.printStackTrace();
    }
}