Java Code Examples for android.os.Parcel.readStringArray()

The following are Jave code examples for showing how to use readStringArray() of the android.os.Parcel class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: AIMSICDL   File: Cell.java   View Source Code Vote up 6 votes
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]);
}
 
Example 2
Project: easyfilemanager   File: BaseActivity.java   View Source Code Vote up 6 votes
@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;
}
 
Example 3
Project: BookReader-master   File: TagGroup.java   View Source Code Vote up 6 votes
public SavedState(Parcel source) {
    super(source);
    tagCount = source.readInt();
    tags = new String[tagCount];
    source.readStringArray(tags);
    checkedPosition = source.readInt();
    input = source.readString();
}
 
Example 4
Project: Pocket-Plays-for-Twitch   File: VideoOnDemand.java   View Source Code Vote up 6 votes
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);
}
 
Example 5
Project: FireFiles   File: BaseActivity.java   View Source Code Vote up 6 votes
@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;
}
 
Example 6
Project: simple-share-android   File: BaseActivity.java   View Source Code Vote up 6 votes
@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;
}
 
Example 7
Project: GitHub   File: TagGroup.java   View Source Code Vote up 5 votes
public SavedState(Parcel source) {
    super(source);
    tagCount = source.readInt();
    tags = new String[tagCount];
    source.readStringArray(tags);
    checkedPosition = source.readInt();
    input = source.readString();
}
 
Example 8
Project: com.ruuvi.station   File: RuuviTag.java   View Source Code Vote up 5 votes
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]);
}
 
Example 9
Project: polling-station-app   File: DocumentData.java   View Source Code Vote up 5 votes
private DocumentData(Parcel in) {
    String[] data = new String[3];

    in.readStringArray(data);
    setDocumentNumber(data[0]);
    setExpiryDate(data[1]);
    setDateOfBirth(data[2]);
}
 
Example 10
Project: polling-station-app   File: Voter.java   View Source Code Vote up 5 votes
/**
 * 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()));
}
 
Example 11
Project: android-schedules   File: Class.java   View Source Code Vote up 5 votes
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(", ");
}
 
Example 12
Project: iosched-reader   File: TagFilterHolder.java   View Source Code Vote up 5 votes
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;
}
 
Example 13
Project: TextReader   File: TagGroup.java   View Source Code Vote up 5 votes
public SavedState(Parcel source) {
    super(source);
    tagCount = source.readInt();
    tags = new String[tagCount];
    source.readStringArray(tags);
    checkedPosition = source.readInt();
    input = source.readString();
}
 
Example 14
Project: Pocket-Plays-for-Twitch   File: ChannelInfo.java   View Source Code Vote up 5 votes
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();
	}
}
 
Example 15
Project: Pocket-Plays-for-Twitch   File: Game.java   View Source Code Vote up 5 votes
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];
}
 
Example 16
Project: Zero   File: CatalogItem.java   View Source Code Vote up 5 votes
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]);
}
 
Example 17
Project: AdSimasTeam   File: App.java   View Source Code Vote up 5 votes
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);
}
 
Example 18
Project: DereHelper   File: MultiLineChooseLayout.java   View Source Code Vote up 5 votes
public SavedState(Parcel source) {
    super(source);
    tagCount = source.readInt();
    tags = new String[tagCount];
    source.readStringArray(tags);
    checkedPosition = source.readInt();
}
 
Example 19
Project: Android_RuuvitagScannner   File: Ruuvitag.java   View Source Code Vote up 5 votes
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]);
}