Java Code Examples for android.os.Parcel.readSerializable()

The following are Jave code examples for showing how to use readSerializable() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: mi-firma-android   File: Initiative.java   View Source Code Vote up 6 votes
public void readFromParcel(Parcel in){

        String tit = in.readString();
        if (tit == null || tit.isEmpty()) {
            throw new IllegalArgumentException("El titulo no puede ser nulo ni vacio"); //$NON-NLS-1$
        }
        this.title = tit;

        this.promoter = in.readString();
        this.banner = new byte[in.readInt()];
        in.readByteArray(this.banner);

        this.initDate = (Date) in.readSerializable();
        this.endDate = (Date) in.readSerializable();

        this.numRequiredSignatures = in.readInt();
        this.id = in.readInt();
        try {
            this.promoterUrl = new URL(in.readString());
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
        this.numActualSignatures = in.readInt();
        this.howtoSolveAsHtml = in.readString();

    }
 
Example 2
Project: q-mail   File: Attachment.java   View Source Code Vote up 5 votes
private Attachment(Parcel in) {
    uri = in.readParcelable(Uri.class.getClassLoader());
    state = (LoadingState) in.readSerializable();
    loaderId = in.readInt();
    contentType = in.readString();
    name = in.readString();
    if (in.readInt() != 0) {
        size = in.readLong();
    } else {
        size = null;
    }
    filename = in.readString();
}
 
Example 3
Project: GitHub   File: Post.java   View Source Code Vote up 5 votes
private Post(Parcel in) {
    this.by = in.readString();
    this.id = (Long) in.readValue(Long.class.getClassLoader());
    this.time = (Long) in.readValue(Long.class.getClassLoader());
    this.kids = (ArrayList<Long>) in.readSerializable();
    this.url = in.readString();
    this.score = (Long) in.readValue(Long.class.getClassLoader());
    this.title = in.readString();
    this.text = in.readString();
    int tmpStoryType = in.readInt();
    this.postType = tmpStoryType == -1 ? null : PostType.values()[tmpStoryType];
}
 
Example 4
Project: MainCalendar   File: AlarmRecord.java   View Source Code Vote up 5 votes
protected AlarmRecord(Parcel in) {
    this.mIndex = in.readLong();
    this.mActionType = in.readInt();
    this.mAlarmTime = in.readParcelable(AlarmTime.class.getClassLoader());
    this.mRecordTime = (LunarCalendar) in.readSerializable();
    this.mYear = in.readInt();
    this.mMonth = in.readInt();
    this.mDay = in.readInt();
    this.mTitle = in.readString();
    this.mContent = in.readString();
    this.mDisplay = in.readByte() != 0;
    this.mPause = in.readByte() != 0;
    this.mCreateTime = (Calendar) in.readSerializable();
    this.mIsNew = in.readByte() != 0;
}
 
Example 5
Project: Blogg   File: Post.java   View Source Code Vote up 5 votes
protected Post(Parcel in){
    title = in.readString();
    updateTime = (DateTime) in.readSerializable();
    tag = in.readString();
    id = in.readString();
    url = in.readString();
    type = in.readString();
}
 
Example 6
Project: boohee_v5.6   File: CalendarDay.java   View Source Code Vote up 5 votes
protected CalendarDay(Parcel in) {
    this.bottomLineColorId = -1;
    this.bottomDrawableId = -1;
    this.year = in.readInt();
    this.month = in.readInt();
    this.day = in.readInt();
    this._calendar = (Calendar) in.readSerializable();
    long tmp_date = in.readLong();
    this._date = tmp_date == -1 ? null : new Date(tmp_date);
    this.bottomLineColorId = in.readInt();
    this.bottomDrawableId = in.readInt();
}
 
Example 7
Project: android_ui   File: CalendarView.java   View Source Code Vote up 5 votes
/**
 * Called from {@link #CREATOR} to create an instance of SavedState form the given parcel
 * <var>source</var>.
 *
 * @param source Parcel with data for the new instance.
 */
protected SavedState(@NonNull Parcel source) {
	super(source);
	this.dateVisible = source.readLong();
	this.dateSelected = (Long) source.readValue(Long.class.getClassLoader());
	this.selectedDayMonthPosition = source.readInt();
	this.locale = (Locale) source.readSerializable();
	this.adapterState = source.readParcelable(UiConfig.class.getClassLoader());
}
 
Example 8
Project: android_ui   File: CircularNumberPicker.java   View Source Code Vote up 5 votes
/**
 * Called from {@link #CREATOR} to create an instance of SavedState form the given parcel
 * <var>source</var>.
 *
 * @param source Parcel with data for the new instance.
 */
protected SavedState(@NonNull Parcel source) {
	super(source);
	this.selection = source.readInt();
	this.selectionRange = source.readInt();
	source.readIntArray(numbers = new int[source.readInt()]);
	this.numberFormat = (NumberFormat) source.readSerializable();
}
 
Example 9
Project: anitrend-app   File: UserNotification.java   View Source Code Vote up 5 votes
protected UserNotification(Parcel in) {
    id = in.readInt();
    user_id = in.readInt();
    invoker_id = in.readInt();
    object_id = in.readInt();
    object_type = in.readInt();
    meta_data = in.readString();
    meta_value = in.readSerializable();
    created_at = in.readString();
    user = in.readParcelable(UserSmall.class.getClassLoader());
    comment = in.readParcelable(Comment.class.getClassLoader());
    series = in.readParcelable(SeriesSmall.class.getClassLoader());
}
 
Example 10
Project: android-titanium-imagecropper   File: CropImage.java   View Source Code Vote up 5 votes
protected ActivityResult(Parcel in) {
  super(
      null,
      (Uri) in.readParcelable(Uri.class.getClassLoader()),
      null,
      (Uri) in.readParcelable(Uri.class.getClassLoader()),
      (Exception) in.readSerializable(),
      in.createFloatArray(),
      (Rect) in.readParcelable(Rect.class.getClassLoader()),
      (Rect) in.readParcelable(Rect.class.getClassLoader()),
      in.readInt(),
      in.readInt());
}
 
Example 11
Project: mobile-store   File: Apk.java   View Source Code Vote up 5 votes
protected Apk(Parcel in) {
    this.packageName = in.readString();
    this.versionName = in.readString();
    this.versionCode = in.readInt();
    this.size = in.readInt();
    this.repoId = in.readLong();
    this.hash = in.readString();
    this.hashType = in.readString();
    this.minSdkVersion = in.readInt();
    this.targetSdkVersion = in.readInt();
    this.maxSdkVersion = in.readInt();
    this.obbMainFile = in.readString();
    this.obbMainFileSha256 = in.readString();
    this.obbPatchFile = in.readString();
    this.obbPatchFileSha256 = in.readString();
    long tmpAdded = in.readLong();
    this.added = tmpAdded == -1 ? null : new Date(tmpAdded);
    this.requestedPermissions = in.createStringArray();
    this.features = in.createStringArray();
    this.nativecode = in.createStringArray();
    this.sig = in.readString();
    this.compatible = in.readByte() != 0;
    this.apkName = in.readString();
    this.installedFile = (SanitizedFile) in.readSerializable();
    this.srcname = in.readString();
    this.repoVersion = in.readInt();
    this.repoAddress = in.readString();
    this.incompatibleReasons = in.createStringArray();
    this.antiFeatures = in.createStringArray();
    this.appId = in.readLong();
}
 
Example 12
Project: FuelUp   File: Expense.java   View Source Code Vote up 5 votes
private Expense(Parcel in) {
    this.id = (Long) in.readValue(Long.class.getClassLoader());
    this.vehicle = in.readParcelable(Vehicle.class.getClassLoader());
    this.price = (BigDecimal) in.readSerializable();
    long tmpDate = in.readLong();
    this.date = tmpDate == -1 ? null : new Date(tmpDate);
    this.info = in.readString();
}
 
Example 13
Project: Coffee-Brew-Guide   File: BrewMethod.java   View Source Code Vote up 5 votes
private BrewMethod(Parcel in) {
    this.mMethodName = in.readString();
    this.mMethodInstructions = (ArrayList<String>) in.readSerializable();
    this.mMethodBrewPours = (ArrayList<Integer>) in.readSerializable();
    this.mMethodDose = in.readInt();
    this.mMethodServingSize = in.readInt();
    this.mMethodBrewTime = (org.joda.time.Duration) in.readSerializable();
    this.mMethodGrindSize = in.readString();
    this.mHomeScreenTileId = in.readInt();
    this.mDetailActivityGraphicId = in.readInt();
    this.mDescription = in.readString();
}
 
Example 14
Project: MetadataEditor   File: FolderPickerConfig.java   View Source Code Vote up 4 votes
protected FolderPickerConfig(Parcel in) {
    this.showHiddenFiles = in.readByte() != 0;
    this.showNonDirectoryFiles = in.readByte() != 0;
    this.defaultDirectory = new File((java.io.File) in.readSerializable());
    this.showCancelButton = in.readByte() != 0;
}
 
Example 15
Project: GitHub   File: LargeMessageSnapshot.java   View Source Code Vote up 4 votes
ErrorMessageSnapshot(Parcel in) {
    super(in);
    this.sofarBytes = in.readLong();
    this.throwable = (Throwable) in.readSerializable();
}
 
Example 16
Project: springreplugin   File: PluginRunningList.java   View Source Code Vote up 4 votes
private PluginRunningList(Parcel in) {
    mProcessName = in.readString();
    mPid = in.readInt();
    mList = (ArrayList<String>) in.readSerializable();
}
 
Example 17
Project: AppChooser   File: FileInfo.java   View Source Code Vote up 4 votes
protected FileInfo(Parcel in) {
    this.mFile = (File) in.readSerializable();
}
 
Example 18
Project: container   File: Problem.java   View Source Code Vote up 4 votes
protected Problem(Parcel in) {
	this.e = (Throwable) in.readSerializable();
}
 
Example 19
Project: boxing   File: CameraPickerHelper.java   View Source Code Vote up 4 votes
SavedState(Parcel in) {
    this.mOutputFile = (File) in.readSerializable();
    this.mSourceFilePath = in.readString();
}
 
Example 20
Project: RetroMusicPlayer   File: CategoryInfo.java   View Source Code Vote up 4 votes
private CategoryInfo(Parcel source) {
    category = (Category) source.readSerializable();
    visible = source.readInt() == 1;
}