Best code examples for Android Parcel class (android.os.Parcel)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Parcel class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android Parcel examples from Open Source projects
This code example shows how to use the following methods: writeInt, writeIntArray, writeLong, writeString, writeStringList
120:	dest.writeString(title); 
121:	dest.writeString(link); 
122:	dest.writeString(description); 
-
124:	dest.writeLong(pubDate); 
125:	dest.writeLong(lastBuildDate); 
-
127:	dest.writeString(language); 
128:	dest.writeString(copyright); 
129:	dest.writeString(generator); 
-
131:	dest.writeString(imageWebsiteLink); 
132:	dest.writeString(imageTitle); 
133:	dest.writeString(imageUrl); 
134:	dest.writeInt(imageWidth); 
135:	dest.writeInt(imageHeight); 
136:	dest.writeString(imageDescription); 
-
138:	dest.writeString(managingEditor); 
139:	dest.writeString(webmaster); 
-
141:	dest.writeIntArray(skipDayArray); 
142:	dest.writeIntArray(skipHourArray); 
-
144:	dest.writeInt(ttl); 
-
146:	dest.writeStringList(categoryList); 
-
148:	dest.writeTypedList(rssItemList); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: writeBundle, writeInt
43:	super.writeToParcel(dest, flags); 
44:	dest.writeInt(isDialogShowing ? 1 : 0); 
45:	dest.writeBundle(dialogBundle); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: readDouble, readInt, readLong, readString
27:	serverId = in.readLong(); 
28:	name = in.readString(); 
29:	manufacturer = in.readString(); 
30:	androidVersion = in.readString(); 
31:	screenSize = in.readDouble(); 
32:	price = in.readInt(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: createStringArrayList, readInt, readLong, readParcelable, readString
92:	config.user = in.readString(); 
93:	config.interfaze = in.readString(); 
94:	config.session = in.readString(); 
95:	config.mtu = in.readInt(); 
96:	config.addresses = in.readString(); 
97:	config.routes = in.readString(); 
98:	config.dnsServers = in.createStringArrayList(); 
99:	config.searchDomains = in.createStringArrayList(); 
100:	config.configureIntent = in.readParcelable(null); 
101:	config.startTime = in.readLong(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: writeInt, writeParcelable, writeString, writeTypedList, writeToParcel
688:	dest.writeString(mFragmentClass == null ? null : mFragmentClass.getName()); 
689:	dest.writeParcelable(mSaveState ? mSavedState : null, flags); 
690:	dest.writeInt(mSaveState ? 1 : 0); 
691:	dest.writeInt(mCustomLayout); 
692:	dest.writeInt(mBackgroundColor); 
693:	dest.writeInt(mSelectionHandlerColor); 
694:	dest.writeInt(mTextAppereance); 
695:	dest.writeInt(mTextAppereanceInverse); 
696:	dest.writeTypedList(mSubItems); 
697:	TextUtils.writeToParcel(mLabel, dest, flags); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: readInt, readLong, readString
47:	this.relayPort  = in.readInt(); 
48:	this.sessionId  = in.readLong(); 
49:	this.serverName = in.readString(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: readParcelable, readString
192:	super.readFromParcel(source); 
193:	title = source.readString(); 
194:	sqlQuery = source.readString(); 
195:	valuesForNewTasks = source.readParcelable(ContentValues.class.getClassLoader()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: writeParcelable, writeString
184:	super.writeToParcel(dest, flags); 
185:	dest.writeString(title); 
186:	dest.writeString(sqlQuery); 
187:	dest.writeParcelable(valuesForNewTasks, 0); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: readLong, readString
258:	id = source.readString(); 
259:	transactionId = source.readLong(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: readDouble, readInt, readLong, readString
27:	serverId = in.readLong(); 
28:	name = in.readString(); 
29:	manufacturer = in.readString(); 
30:	androidVersion = in.readString(); 
31:	screenSize = in.readDouble(); 
32:	price = in.readInt(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: readString
21:	super(source); 
22:	text = source.readString(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: dataPosition, setDataPosition, writeInt
53:	mParcel.setDataPosition(0); 
-
55:	assertEquals(0, mParcel.dataPosition()); 
-
73:	final int pos = mParcel.dataPosition(); 
-
75:	mParcel.setDataPosition(offset); 
76:	mParcel.writeInt(pos - offset); 
77:	mParcel.setDataPosition(pos); 
-
130:	mParcel.writeInt(13); // record length 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: readInt, readLong, readParcelable, readString
70:	type = p.readInt(); 
71:	label = p.readString(); 
72:	data = p.readString(); 
73:	uri = p.readParcelable(loader); 
74:	id = p.readLong(); 
75:	maxLines = p.readInt(); 
76:	mimetype = p.readString(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt, readParcelable, readString
136:	id = in.readString(); 
137:	type = in.readString(); 
138:	name = in.readString(); 
139:	uid = in.readString(); 
140:	status = in.readInt(); 
141:	notificationsEnabled = in.readInt() == 1; 
142:	user = in.readParcelable(GCUserModel.class.getClassLoader()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readByteArray, readDouble, readInt, readLong, readParcelable
81:	 
82:	super(attrId); 
-
125:	this.lastUpdated = new Date (in.readLong()); 
126:	this.stringValue = in.readString(); 
127:	this.integerValue = in.readInt(); 
128:	this.doubleValue = in.readDouble(); 
129:	this.binaryValue = new byte[in.readInt()]; 
130:	in.readByteArray(this.binaryValue); 
-
133:	this.valueType = CtxAttributeValueType.valueOf(in.readString()); 
-
138:	this.valueMetric = in.readString(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt, readParcelable, readString
153:	id = in.readString(); 
154:	comment = in.readString(); 
155:	status = in.readInt(); 
156:	createdAt = in.readString(); 
157:	user = in.readParcelable(GCUserModel.class.getClassLoader()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: writeByteArray, writeInt, writeLong
124:	parcel.writeInt(mTagId.length); 
125:	parcel.writeByteArray(mTagId); 
126:	parcel.writeLong(mScannedAt.getTime()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt, readParcelable
85:	return new TaskDecoration((RemoteViews)source.readParcelable( 
-
87:	source.readInt(), source.readInt()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: writeInt, writeParcelable, writeString
48:	out.writeString(key); 
49:	out.writeInt(state); 
50:	out.writeParcelable(intent, flags); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: writeInt
28:	super.writeToParcel(parcel, flags); 
29:	parcel.writeInt(ParagraphIndex); 
30:	parcel.writeInt(ElementIndex); 
31:	parcel.writeInt(CharIndex); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt, readString, readStrongBinder
52:	method = IInputMethodSession.Stub.asInterface(source.readStrongBinder()); 
53:	id = source.readString(); 
54:	sequence = source.readInt(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: writeInt, writeLong, writeParcelable
170:	parcel.writeInt(mId); 
-
174:	parcel.writeInt(mProcessType); 
175:	parcel.writeInt(mAgency); 
-
177:	parcel.writeInt(mIsBus ? 1 : 0); 
178:	parcel.writeInt(mIsTrain ? 1 : 0); 
179:	parcel.writeInt(mIsMetro ? 1 : 0); 
180:	parcel.writeInt(mIsFerry ? 1 : 0); 
181:	parcel.writeInt(mIsOther ? 1 : 0); 
182:	parcel.writeInt(mIsCharge ? 1 : 0); 
183:	parcel.writeInt(mIsPurchase ? 1 : 0); 
184:	parcel.writeInt(mIsBanned ? 1 : 0); 
-
186:	parcel.writeLong(mFare); 
187:	parcel.writeLong(mTimestamp.getTime()); 
-
190:	parcel.writeInt(1); 
191:	parcel.writeLong(mExitTimestamp.getTime()); 
-
193:	parcel.writeInt(0); 
-
196:	parcel.writeInt(mStartStationId); 
-
198:	parcel.writeInt(1); 
199:	parcel.writeParcelable(mStartStation, flags); 
-
201:	parcel.writeInt(0); 
-
204:	parcel.writeInt(mEndStationId); 
-
206:	parcel.writeInt(1); 
207:	parcel.writeParcelable(mEndStation, flags); 
-
209:	parcel.writeInt(0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt, readString
28:	mId = source.readInt(); 
29:	mName = source.readString(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt, readParcelable, readString
57:	text = in.readString(); 
58:	defaultText = in.readString(); 
59:	icon = in.readParcelable(null); 
60:	minLen = in.readInt(); 
61:	maxLen = in.readInt(); 
62:	ucs2 = in.readInt() == 1 ? true : false; 
63:	packed = in.readInt() == 1 ? true : false; 
64:	digitOnly = in.readInt() == 1 ? true : false; 
65:	echo = in.readInt() == 1 ? true : false; 
66:	yesNo = in.readInt() == 1 ? true : false; 
67:	helpAvailable = in.readInt() == 1 ? true : false; 
68:	duration = in.readParcelable(null); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt
22:	return new TestParcelable(source.readInt()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readLong, readString
42:	name = source.readString(); 
43:	fgLongName = source.readString(); 
44:	bgLongName = source.readString(); 
45:	fgTime = source.readLong(); 
46:	fgOps = source.readLong(); 
47:	bgTime = source.readLong(); 
48:	bgOps = source.readLong(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: writeByte, writeByteArray, writeInt
116:	parcel.writeByte(fileType); 
117:	parcel.writeByte(commSetting); 
118:	parcel.writeInt(accessRights.length); 
119:	parcel.writeByteArray(accessRights); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt, readParcelable, readString
208:	id = in.readString(); 
209:	commentsCount = in.readString(); 
210:	isPortrait = in.readInt() == 1; 
211:	shareUrl = in.readString(); 
212:	url = in.readString(); 
213:	user = in.readParcelable(GCUserModel.class.getClassLoader()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: writeInt, writeString
85:	out.writeString(this.pkg); 
86:	out.writeInt(this.id); 
-
89:	out.writeString(this.tag); 
-
91:	out.writeInt(0); 
-
93:	out.writeInt(this.uid); 
94:	out.writeInt(this.initialPid); 
95:	out.writeInt(this.score); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: readInt, readString, readCharSequence
62:	this.iconPackage = in.readString(); 
63:	this.iconId = in.readInt(); 
64:	this.iconLevel = in.readInt(); 
65:	this.visible = in.readInt() != 0; 
66:	this.number = in.readInt(); 
67:	this.contentDescription = in.readCharSequence(); 
Full Snippet Info
7
CodeRank
Related Android Parcel Questions & Answers:
See Code Examples for Android Parcel Methods: