当前位置: 首页>>代码示例>>Java>>正文


Java Parcel.readStringArray方法代码示例

本文整理汇总了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]);
}
 
开发者ID:5GSD,项目名称:AIMSICDL,代码行数:21,代码来源:Cell.java

示例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;
}
 
开发者ID:kranthi0987,项目名称:easyfilemanager,代码行数:25,代码来源:BaseActivity.java

示例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();
}
 
开发者ID:zwmlibs,项目名称:BookReader-master,代码行数:9,代码来源:TagGroup.java

示例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);
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:19,代码来源:VideoOnDemand.java

示例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]);
}
 
开发者ID:ruuvi,项目名称:com.ruuvi.station,代码行数:11,代码来源:RuuviTag.java

示例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]);
}
 
开发者ID:digital-voting-pass,项目名称:polling-station-app,代码行数:9,代码来源:DocumentData.java

示例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()));
}
 
开发者ID:digital-voting-pass,项目名称:polling-station-app,代码行数:12,代码来源:Voter.java

示例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(", ");
}
 
开发者ID:linklux,项目名称:android-schedules,代码行数:14,代码来源:Class.java

示例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;
}
 
开发者ID:dreaminglion,项目名称:iosched-reader,代码行数:16,代码来源:TagFilterHolder.java

示例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();
	}
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:28,代码来源:ChannelInfo.java

示例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];
}
 
开发者ID:SebastianRask,项目名称:Pocket-Plays-for-Twitch,代码行数:15,代码来源:Game.java

示例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]);
}
 
开发者ID:lucasax,项目名称:Zero,代码行数:13,代码来源:CatalogItem.java

示例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);
}
 
开发者ID:leosimas,项目名称:AdSimasTeam,代码行数:10,代码来源:App.java

示例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();
}
 
开发者ID:Lazyeraser,项目名称:DereHelper,代码行数:8,代码来源:MultiLineChooseLayout.java

示例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]);
}
 
开发者ID:CentriaUniversityOfAppliedSciences,项目名称:Android_RuuvitagScannner,代码行数:11,代码来源:Ruuvitag.java


注:本文中的android.os.Parcel.readStringArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。