本文整理汇总了Java中android.os.Parcel.readStringArray方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.readStringArray方法的具体用法?Java Parcel.readStringArray怎么用?Java Parcel.readStringArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.readStringArray方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Cell
import android.os.Parcel; //导入方法依赖的package包/类
public Cell(Parcel in) {
String[] data = new String[15];
in.readStringArray(data);
cid = Integer.valueOf(data[0]);
lac = Integer.valueOf(data[1]);
mcc = Integer.valueOf(data[2]);
mnc = Integer.valueOf(data[3]);
dbm = Integer.valueOf(data[4]);
psc = Integer.valueOf(data[5]);
rssi = Integer.valueOf(data[6]);
timingAdvance = Integer.valueOf(data[7]);
sid = Integer.valueOf(data[8]);
netType = Integer.valueOf(data[9]);
lon = Double.valueOf(data[10]);
lat = Double.valueOf(data[11]);
speed = Double.valueOf(data[12]);
accuracy = Double.valueOf(data[13]);
bearing = Double.valueOf(data[14]);
}
示例2: createFromParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public State createFromParcel(Parcel in) {
final State state = new State();
state.action = in.readInt();
state.userMode = in.readInt();
state.acceptMimes = new String[in.readInt()];
in.readStringArray(state.acceptMimes);
state.userSortOrder = in.readInt();
state.allowMultiple = in.readInt() != 0;
state.showSize = in.readInt() != 0;
state.showFolderSize = in.readInt() != 0;
state.showThumbnail = in.readInt() != 0;
state.showHiddenFiles = in.readInt() != 0;
state.localOnly = in.readInt() != 0;
state.forceAdvanced = in.readInt() != 0;
state.showAdvanced = in.readInt() != 0;
state.rootMode = in.readInt() != 0;
state.stackTouched = in.readInt() != 0;
state.restored = in.readInt() != 0;
DurableUtils.readFromParcel(in, state.stack);
state.currentSearch = in.readString();
in.readMap(state.dirState, null);
return state;
}
示例3: SavedState
import android.os.Parcel; //导入方法依赖的package包/类
public SavedState(Parcel source) {
super(source);
tagCount = source.readInt();
tags = new String[tagCount];
source.readStringArray(tags);
checkedPosition = source.readInt();
input = source.readString();
}
示例4: VideoOnDemand
import android.os.Parcel; //导入方法依赖的package包/类
public VideoOnDemand(Parcel in) {
String[] data = new String[10];
in.readStringArray(data);
this.videoTitle = data[0];
this.gameTitle = data[1];
this.previewUrl = data[2];
this.videoId = data[3];
this.channelName = data[4];
this.displayName = data[5];
this.recordedAtString = data[6];
this.views = Integer.valueOf(data[7]);
this.length = Integer.valueOf(data[8]);
this.isBroadcast = Boolean.valueOf(data[9]);
this.channelInfo = (ChannelInfo) in.readParcelable(ChannelInfo.class.getClassLoader());
setRecordedAtDate(this.recordedAtString);
}
示例5: RuuviTag
import android.os.Parcel; //导入方法依赖的package包/类
public RuuviTag(Parcel in) {
String[] data = new String[6];
in.readStringArray(data);
this.id = data[0];
this.url = data[1];
this.rssi = Integer.parseInt(data[2]);
this.temperature = Double.valueOf(data[3]);
this.humidity = Double.valueOf(data[4]);
this.pressure = Double.valueOf(data[5]);
}
示例6: DocumentData
import android.os.Parcel; //导入方法依赖的package包/类
private DocumentData(Parcel in) {
String[] data = new String[3];
in.readStringArray(data);
setDocumentNumber(data[0]);
setExpiryDate(data[1]);
setDateOfBirth(data[2]);
}
示例7: Voter
import android.os.Parcel; //导入方法依赖的package包/类
/**
* Create a Voter object via a parcel
* @param in The parcel.
*/
protected Voter(Parcel in) {
String data[] = new String[2];
in.readStringArray(data);
setFirstName(data[0]);
setLastName(data[1]);
setGender(Gender.getInstance(in.readInt()));
}
示例8: Class
import android.os.Parcel; //导入方法依赖的package包/类
private Class(Parcel in) {
String[] data = new String[8];
in.readStringArray(data);
this.id = data[0];
this.location = data[1];
this.timeStart = new Date(Long.parseLong(data[2]));
this.timeEnd = new Date(Long.parseLong(data[3]));
this.comments = data[4];
this.groups = data[5];
this.className = data[6];
this.tutors = data[7].split(", ");
}
示例9: createFromParcel
import android.os.Parcel; //导入方法依赖的package包/类
public TagFilterHolder createFromParcel(Parcel in) {
TagFilterHolder holder = new TagFilterHolder();
String[] filters = in.createStringArray();
in.readStringArray(filters);
Collections.addAll(holder.mSelectedFilters, filters);
int[] categories = in.createIntArray();
in.readIntArray(categories);
System.arraycopy(categories, 0, holder.mCategories, 0, categories.length);
holder.mShowLiveStreamedSessions = in.readInt() == 1;
return holder;
}
示例10: ChannelInfo
import android.os.Parcel; //导入方法依赖的package包/类
public ChannelInfo(Parcel in) {
String[] data = new String[9];
in.readStringArray(data);
this.userId = Integer.parseInt(data[0]);
this.streamerName = data[1];
this.displayName = data[2];
this.streamDescription = data[3];
this.followers = Integer.parseInt(data[4]);
this.views = Integer.parseInt(data[5]);
// Test for null in URL and make sure the URLs are viable
try {
if(data[6] != null) {
this.logoURL = new URL(data[6]);
}
if(data[7] != null) {
this.videoBannerURL = new URL(data[7]);
}
if(data[8] != null) {
this.profileBannerURL = new URL(data[8]);
}
} catch (MalformedURLException e) {
e.printStackTrace();
}
}
示例11: Game
import android.os.Parcel; //导入方法依赖的package包/类
public Game(Parcel parcel) {
String[] stringData = new String[4];
int[] intData = new int[2];
parcel.readStringArray(stringData);
parcel.readIntArray(intData);
gameTitle = stringData[0];
gameViewers = intData[0];
gameStreamers = intData[1];
gamePreviewSmallURL = stringData[1];
gamePreviewMediumURL = stringData[2];
gamePreviewLargeURL = stringData[3];
}
示例12: CatalogItem
import android.os.Parcel; //导入方法依赖的package包/类
private CatalogItem(Parcel in) {
String[] data = new String[7];
in.readStringArray(data);
this.id = data[0];
this.title = data[1];
this.author = data[2];
this.site = data[3];
this.pro = Integer.valueOf(data[4]);
this.test = Integer.valueOf(data[5]);
this.downloads = Long.valueOf(data[6]);
}
示例13: App
import android.os.Parcel; //导入方法依赖的package包/类
private App(Parcel in) {
name = in.readString();
packageName = in.readString();
iconUrl = in.readString();
text = in.readString();
int tagsSize = in.readInt();
tags = new String[tagsSize];
in.readStringArray(tags);
}
示例14: SavedState
import android.os.Parcel; //导入方法依赖的package包/类
public SavedState(Parcel source) {
super(source);
tagCount = source.readInt();
tags = new String[tagCount];
source.readStringArray(tags);
checkedPosition = source.readInt();
}
示例15: Ruuvitag
import android.os.Parcel; //导入方法依赖的package包/类
public Ruuvitag(Parcel in) {
String[] data = new String[6];
in.readStringArray(data);
this.id = data[0];
this.url = data[1];
this.rssi = data[2];
this.temperature = Double.valueOf(data[3]);
this.humidity = Double.valueOf(data[4]);
this.pressure = Double.valueOf(data[5]);
}