本文整理汇总了Java中android.os.Parcel.writeStringArray方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.writeStringArray方法的具体用法?Java Parcel.writeStringArray怎么用?Java Parcel.writeStringArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.writeStringArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
out.writeInt(action);
out.writeInt(userMode);
out.writeInt(acceptMimes.length);
out.writeStringArray(acceptMimes);
out.writeInt(userSortOrder);
out.writeInt(allowMultiple ? 1 : 0);
out.writeInt(showSize ? 1 : 0);
out.writeInt(showFolderSize ? 1 : 0);
out.writeInt(showThumbnail ? 1 : 0);
out.writeInt(showHiddenFiles ? 1 : 0);
out.writeInt(localOnly ? 1 : 0);
out.writeInt(forceAdvanced ? 1 : 0);
out.writeInt(showAdvanced ? 1 : 0);
out.writeInt(rootMode ? 1 : 0);
out.writeInt(stackTouched ? 1 : 0);
out.writeInt(restored ? 1 : 0);
DurableUtils.writeToParcel(out, stack);
out.writeString(currentSearch);
out.writeMap(dirState);
}
示例2: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel parcel, int i) {
parcel.writeString(title);
parcel.writeString(description);
parcel.writeString(descriptionLong);
parcel.writeString(language);
parcel.writeString(brand);
parcel.writeFloatArray(catalogNumbers);
parcel.writeParcelable(customIds, i);
parcel.writeStringArray(keywords);
parcel.writeStringArray(categories);
parcel.writeString(availability);
parcel.writeString(groupId);
parcel.writeString(price);
parcel.writeString(salePrice);
parcel.writeParcelable(links, i);
parcel.writeStringArray(images);
parcel.writeString(metadata);
parcel.writeString(sku);
parcel.writeFloat(score);
}
示例3: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
tagCount = tags.length;
dest.writeInt(tagCount);
dest.writeStringArray(tags);
dest.writeInt(checkedPosition);
dest.writeString(input);
}
示例4: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.packageName);
dest.writeString(this.versionName);
dest.writeInt(this.versionCode);
dest.writeInt(this.size);
dest.writeLong(this.repoId);
dest.writeString(this.hash);
dest.writeString(this.hashType);
dest.writeInt(this.minSdkVersion);
dest.writeInt(this.targetSdkVersion);
dest.writeInt(this.maxSdkVersion);
dest.writeString(this.obbMainFile);
dest.writeString(this.obbMainFileSha256);
dest.writeString(this.obbPatchFile);
dest.writeString(this.obbPatchFileSha256);
dest.writeLong(this.added != null ? this.added.getTime() : -1);
dest.writeStringArray(this.requestedPermissions);
dest.writeStringArray(this.features);
dest.writeStringArray(this.nativecode);
dest.writeString(this.sig);
dest.writeByte(this.compatible ? (byte) 1 : (byte) 0);
dest.writeString(this.apkName);
dest.writeSerializable(this.installedFile);
dest.writeString(this.srcname);
dest.writeInt(this.repoVersion);
dest.writeString(this.repoAddress);
dest.writeStringArray(this.incompatibleReasons);
dest.writeStringArray(this.antiFeatures);
dest.writeLong(this.appId);
}
示例5: marshallRequest
import android.os.Parcel; //导入方法依赖的package包/类
private byte[] marshallRequest(int token, String strings[]) {
Parcel p = Parcel.obtain();
p.writeInt(RIL_REQUEST_OEM_STRINGS);
p.writeInt(token);
p.writeStringArray(strings);
byte[] res = p.marshall();
p.recycle();
return res;
}
示例6: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
tagCount = tags.length;
dest.writeInt(tagCount);
dest.writeStringArray(tags);
dest.writeInt(checkedPosition);
}
示例7: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(url);
dest.writeString(from_station_code);
dest.writeString(to_station_code);
dest.writeString(from_station);
dest.writeString(to_station);
dest.writeString(train_code);
dest.writeString(train_date);
dest.writeString(back_train_date);
dest.writeString(purpose_codes);
dest.writeStringArray(seats);
dest.writeStringArray(date2);
dest.writeString(passenger);
}
示例8: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
// Create array with values to send with intent - I think
String[] toSend = new String[] {
String.valueOf(this.userId),
this.streamerName,
this.displayName,
this.streamDescription,
String.valueOf(this.followers),
String.valueOf(this.views),
null, //this.logoURL.toString(),
null, //this.videoBannerURL.toString(),
null, //this.profileBannerURL.toString()
};
// Only send URLS with if they are not null
if(this.logoURL != null) {
toSend[6] = String.valueOf(this.logoURL);
}
if(this.videoBannerURL != null) {
toSend[7] = String.valueOf(this.videoBannerURL);
}
if(this.profileBannerURL != null) {
toSend[8] = String.valueOf(this.profileBannerURL);
}
dest.writeStringArray(toSend);
}
示例9: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(this.name);
dest.writeInt(this.weight);
dest.writeByte(this.italic ? (byte) 1 : (byte) 0);
dest.writeString(this.ttc);
dest.writeStringArray(this.ttf);
}
示例10: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(this.minWidth);
dest.writeInt(this.minHeight);
dest.writeLong(this.minSize);
dest.writeStringArray(this.mimeType);
}
示例11: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeStringArray(this.filterMimeTypes);
dest.writeString(this.hintOfPick);
dest.writeByte(this.singlePhoto ? (byte) 1 : (byte) 0);
dest.writeInt(this.limitPickPhoto);
dest.writeByte(this.isSingleVedio ? (byte) 1 : (byte) 0);
dest.writeByte(this.isNeedCrop ? (byte) 1 : (byte) 0);
dest.writeString(this.filePath);
dest.writeInt(this.type);
dest.writeInt(this.requestCode);
dest.writeInt(this.limitRecordTime);
dest.writeInt(this.limitRecordSize);
}
示例12: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags)
{
dest.writeStringArray(this.permissions);
}
示例13: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeStringArray(medias);
dest.writeString(maxFileLengthLimit);
dest.writeString(loading);
}
示例14: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeStringArray(permissions);
dest.writeInt(action);
dest.writeInt(fromIntention);
}
示例15: writeToParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public void writeToParcel(Parcel out, int flags) {
out.writeStringArray(new String[]{description, heading, shareText});
out.writeIntArray(new int[]{iconLockedID, iconUnlockedID});
out.writeParcelable(criterion, flags);
}