當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。