Example usage for android.os Parcel readSerializable

List of usage examples for android.os Parcel readSerializable

Introduction

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

Prototype

public final Serializable readSerializable() 

Source Link

Document

Read and return a new Serializable object from the parcel.

Usage

From source file:com.owncloud.android.ui.helpers.FilesUploadHelper.java

protected FilesUploadHelper(Parcel in) {
    this.capturedPhotoPath = in.readString();
    this.image = (File) in.readSerializable();
}

From source file:de.mrapp.android.dialog.datastructure.ViewPagerItem.java

/**
 * Creates a new representation of one item of a view pager.
 *
 * @param source//from www.j  a va 2 s.c  o m
 *         The source, the representation should be created from, as an instance of the class
 *         {@link Parcel}. The source may not be null
 */
@SuppressWarnings("unchecked")
private ViewPagerItem(@NonNull final Parcel source) {
    this.title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
    this.fragmentClass = (Class<? extends Fragment>) source.readSerializable();
    this.arguments = source.readBundle(getClass().getClassLoader());
}

From source file:com.wootric.androidsdk.objects.WootricCustomMessage.java

private WootricCustomMessage(Parcel in) {
    this.followupQuestion = in.readString();
    this.followupQuestionsList = (HashMap<String, String>) in.readSerializable();
    this.placeholderText = in.readString();
    this.placeholderTextsList = (HashMap<String, String>) in.readSerializable();
}

From source file:com.shizhefei.view.multitype.provider.FragmentData.java

protected FragmentData(Parcel in) {
    this.arguments = in.readBundle();
    this.fragmentClass = (Class<? extends Fragment>) in.readSerializable();
    this.tag = in.readString();
}

From source file:at.diamonddogs.data.adapter.parcelable.ParcelableAdapterWebRequest.java

/**
 * Required by Parcelable mechanism//from  ww w  .ja v  a 2s  .c  o  m
 * 
 * @param in
 *            the input parcel
 */
public ParcelableAdapterWebRequest(Parcel in) {
    super(in);
    if (dataObject == null) {
        dataObject = new WebRequest();
    }
    dataObject.setProcessorId(in.readInt());
    dataObject.setRequestType((Type) in.readSerializable());
    dataObject.setUrl((URL) in.readSerializable());
    dataObject.setReadTimeout(in.readInt());
    dataObject.setConnectionTimeout(in.readInt());
    dataObject.setFollowRedirects(in.readInt() == 1);

    boolean first = (in.readInt() == 1);
    if (first) {
        ParcelableAdapterTempFile tmp = in.readParcelable(ClassLoader.getSystemClassLoader());
        dataObject.setTmpFile(new Pair<Boolean, TempFile>(first, tmp.getDataObject()));
    }

    dataObject.setHeader(readStringMap(in));
    dataObject.setCacheTime(in.readLong());
    dataObject.setNumberOfRetries(in.readInt());
    dataObject.setRetryInterval(in.readInt());

    dataObject.setCancelled(in.readInt() == 1);
    dataObject.setCheckConnectivity(in.readInt() == 1);
    dataObject.setCheckConnectivityPing(in.readInt() == 1);
    dataObject.setUseOfflineCache(in.readInt() == 1);

}

From source file:com.tigerpenguin.places.model.Place.java

@SuppressWarnings("unchecked")
public Place(Parcel in) {
    placeId = in.readString();//  www . j av  a  2  s  . com
    name = in.readString();
    vicinity = in.readString();
    formattedAddress = in.readString();
    priceLevel = (PriceLevel) in.readSerializable();
    rating = in.readDouble();
    iconUrl = in.readString();
    types = in.readArrayList(PlaceType.class.getClassLoader());
    geometry = in.readParcelable(Geometry.class.getClassLoader());
    openingHours = in.readParcelable(OpeningHours.class.getClassLoader());
    photos = in.readArrayList(Photo.class.getClassLoader());
}

From source file:com.simas.vc.nav_drawer.NavCAB.java

@SuppressWarnings("unchecked")
private NavCAB(Parcel in) {
    mInitiallySelectedPosition = in.readInt();
    checkedPositions = (List<Integer>) in.readSerializable();
}

From source file:com.nextgis.firereporter.ScanexNotificationItem.java

private ScanexNotificationItem(Parcel in) {
    dt = (Date) in.readSerializable();
    X = in.readDouble();/*from ww w.j  av  a 2  s.  c  om*/
    Y = in.readDouble();
    nIconId = in.readInt();
    nID = in.readLong();
    nConfidence = in.readInt();
    nPower = in.readInt();
    sURL1 = in.readString();
    sURL2 = in.readString();
    sType = in.readString();
    sPlace = in.readString();
    sMap = in.readString();
    mbWatched = in.readInt() == 1 ? true : false;

    //
    nFormat = in.readInt();
    sCoordLat = in.readString();
    sCoordLon = in.readString();

    sN = in.readString();
    sS = in.readString();
    sW = in.readString();
    sE = in.readString();
}

From source file:org.alfresco.mobile.android.api.session.impl.RepositorySessionImpl.java

@SuppressWarnings("unchecked")
public RepositorySessionImpl(Parcel o) {
    this.baseUrl = o.readString();
    this.userIdentifier = o.readString();
    this.password = o.readString();
    this.rootNode = o.readParcelable(FolderImpl.class.getClassLoader());
    this.repositoryInfo = (RepositoryInfo) o.readSerializable();
    this.cmisSession = (Session) o.readSerializable();
    Bundle b = o.readBundle();/*w ww. j  a va  2s . c  om*/
    this.userParameters = (Map<String, Serializable>) b.getSerializable("userParameters");
    initServices();
}

From source file:org.alfresco.mobile.android.api.session.impl.CloudSessionImpl.java

@SuppressWarnings("unchecked")
public CloudSessionImpl(Parcel o) {
    this.baseUrl = o.readString();
    this.userIdentifier = o.readString();
    this.password = o.readString();
    this.currentNetwork = (CloudNetwork) o.readSerializable();
    this.rootNode = o.readParcelable(FolderImpl.class.getClassLoader());
    this.repositoryInfo = (RepositoryInfo) o.readSerializable();
    this.cmisSession = (Session) o.readSerializable();
    Bundle b = o.readBundle();/*w w  w  .ja  va  2  s. co  m*/
    this.userParameters = (Map<String, Serializable>) b.getSerializable("userParameters");
    create();
}