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

The following are Jave code examples for showing how to use writeString() 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.
Example 1
Project: exciting-app   File: AbsHListView.java   Source Code and License Vote up 6 votes
@Override
public void writeToParcel(Parcel out, int flags) {
	if (LOG_ENABLED) {
		Log.i(TAG, "writeToParcel");
	}
	super.writeToParcel(out, flags);
	out.writeLong(selectedId);
	out.writeLong(firstId);
	out.writeInt(viewLeft);
	out.writeInt(position);
	out.writeInt(width);
	out.writeString(filter);
	out.writeByte((byte) (inActionMode ? 1 : 0));
	out.writeInt(checkedItemCount);

	if (LOG_ENABLED) {
		////log.d(TAG, "writing checkState: " + checkState);
		////log.d(TAG, "writing checkIdState: " + checkIdState);
	}

	writeSparseBooleanArray(checkState, out);
	writeSparseLongArray(checkIdState, out);
}
 
Example 2
Project: SimpleDialogFragments   File: Input.java   Source Code and License Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(hint);
    dest.writeInt(hintResourceId);
    dest.writeString(text);
    dest.writeInt(textResourceId);
    dest.writeInt(inputType);
    dest.writeInt(maxLength);
    dest.writeInt(minLength);
    dest.writeInt(suggestionArrayRes);
    dest.writeIntArray(suggestionStringResArray);
    dest.writeStringArray(suggestions);
    dest.writeByte((byte) (passwordToggleVisible ? 1 : 0));
    dest.writeByte((byte) (forceSuggestion ? 1 : 0));
    dest.writeString(pattern);
    dest.writeString(patternError);
    dest.writeInt(patternErrorId);
}
 
Example 3
Project: atlant-android   File: Rent.java   Source Code and License Vote up 6 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(this.name);
  dest.writeString(this.country);
  dest.writeString(this.city);
  dest.writeStringArray(this.imageUrl);
  dest.writeInt(this.numberRooms);
  dest.writeInt(this.numberBeds);
  dest.writeInt(this.numberBath);
  dest.writeInt(this.numberMaxGuests);
  dest.writeInt(this.priceDollars);
  dest.writeString(this.howDay);
  dest.writeString(this.description);
  dest.writeByte(this.growth ? (byte) 1 : (byte) 0);
  dest.writeInt(this.numberLikes);
  dest.writeParcelable(this.amenities, flags);
}
 
Example 4
Project: OpenHub   File: Branch.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.name);
    dest.writeString(this.zipballUrl);
    dest.writeString(this.tarballUrl);
    dest.writeByte(this.isBranch ? (byte) 1 : (byte) 0);
}
 
Example 5
Project: AliZhiBoHao   File: ShareInfo.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(title);
    dest.writeString(desc);
    dest.writeString(link);
    dest.writeString(imgUrl);
    dest.writeString(liveId);
}
 
Example 6
Project: trust-wallet-android   File: TransactionContract.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(address);
    parcel.writeString(name);
    parcel.writeString(totalSupply);
    parcel.writeLong(decimals);
    parcel.writeString(symbol);
}
 
Example 7
Project: omnicrow-android   File: NotificationAction.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeByte((byte) (isEnabled ? 1 : 0));
    dest.writeString(message);
    dest.writeString(ringtone);
    dest.writeByte((byte) (isVibrate ? 1 : 0));
}
 
Example 8
Project: container   File: AppSetting.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(packageName);
    dest.writeString(apkPath);
    dest.writeString(libPath);
    dest.writeByte((byte) (dependSystem ? 1 : 0));
}
 
Example 9
Project: garras   File: User.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(title);
    dest.writeByte((byte) (primary ? 1 : 0));
    dest.writeString(slug);
    dest.writeString(link);
}
 
Example 10
Project: mapbox-events-android   File: NavigationStepMetadata.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
  dest.writeString(upcomingInstruction);
  dest.writeString(upcomingType);
  dest.writeString(upcomingModifier);
  dest.writeString(upcomingName);
  dest.writeString(previousInstruction);
  dest.writeString(previousType);
  dest.writeString(previousModifier);
  dest.writeString(previousName);
  if (distance == null) {
    dest.writeByte((byte) (0x00));
  } else {
    dest.writeByte((byte) (0x01));
    dest.writeInt(distance);
  }
  if (duration == null) {
    dest.writeByte((byte) (0x00));
  } else {
    dest.writeByte((byte) (0x01));
    dest.writeInt(duration);
  }
  if (distanceRemaining == null) {
    dest.writeByte((byte) (0x00));
  } else {
    dest.writeByte((byte) (0x01));
    dest.writeInt(distanceRemaining);
  }
  if (durationRemaining == null) {
    dest.writeByte((byte) (0x00));
  } else {
    dest.writeByte((byte) (0x01));
    dest.writeInt(durationRemaining);
  }
}
 
Example 11
Project: SimpleDialogFragments   File: Spinner.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(itemArrayRes);
    dest.writeIntArray(itemStringResArray);
    dest.writeStringArray(items);
    dest.writeString(text);
    dest.writeInt(textResourceId);
    dest.writeString(placeholder);
    dest.writeInt(placeholderResourceId);
    dest.writeInt(position);
}
 
Example 12
Project: Android_Labs   File: TrackMetaData.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(TrackPath);
    dest.writeString(TrackTitle);
    dest.writeString(TrackArtist);
    dest.writeString(TrackAlbum);
    dest.writeString(TrackGenre);
    dest.writeString(TrackLength);
    dest.writeString(TrackYear);
}
 
Example 13
Project: Flashcards-Demo   File: CardModel.java   Source Code and License Vote up 5 votes
/**
 * Parcelable object written on state changes.
 *
 * @param parcel Parcelable object in which state changes are written.
 * @param i      Flags used to storing Parcelable object
 */
@Override
public void writeToParcel(Parcel parcel, int i) {
    parcel.writeString(englishWord);
    parcel.writeString(greekWord);
    parcel.writeString(pronunciationGreek);
    parcel.writeString(voiceMale);
}
 
Example 14
Project: Things-Audio-Renderer   File: Track.java   Source Code and License Vote up 5 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    super.writeToParcel(dest, flags);
    dest.writeString(title);
    dest.writeString(album);
    dest.writeString(artist);
    dest.writeInt(length);
    dest.writeString(url);
    dest.writeString(art);
}
 
Example 15
Project: Phoenix-for-VK   File: VkApiPhotoMessageServer.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(upload_url);
    dest.writeInt(album_id);
    dest.writeInt(user_id);
}
 
Example 16
Project: letv   File: DataEntity.java   Source Code and License Vote up 4 votes
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(toString());
}
 
Example 17
Project: IPCInvoker   File: IPCInvokeSample_InvokeByTypeWithData.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(name);
    dest.writeInt(pid);
}
 
Example 18
Project: mvvm-template   File: ParentsModel.java   Source Code and License Vote up 4 votes
@Override public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(this.sha);
    dest.writeString(this.url);
    dest.writeString(this.htmlUrl);
}
 
Example 19
Project: Trackr   File: FriendList.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeInt(this.id);
    dest.writeString(this.name);
    dest.writeInt(this.permissionStatus);
}
 
Example 20
Project: Options   File: ParcelableString.java   Source Code and License Vote up 4 votes
@Override
public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(mString);
}