Android Open Source - guides Section

From Project

Back to project page guides.


The source code is released under:

GNU General Public License

If you think the Android project guides listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.adrguides.model;
//  w  ww .ja  v a 2 s.  c  om
import android.os.Parcel;
import android.os.Parcelable;

 * Created by adrian on 4/09/13.
public class Section implements Parcelable {

    private String text = ""; // not null
    private String read = ""; // Nullable. If null then the text to read is "text"
    private String imageURL = null; // Nullable

    public String getText() {
        return text;

    public void setText(String text) {
        this.text = text;

    public String getRead() {
        return read;

    public void setRead(String read) { = read;

    public String getImageURL() {
        return imageURL;

    public void setImageURL(String imageURL) {
        this.imageURL = imageURL;

    public void writeToParcel(Parcel parcel, int i) {

    public int describeContents() {
        return 0;

    public static final Parcelable.Creator<Section> CREATOR = new Parcelable.Creator<Section>() {
        public Section createFromParcel(Parcel in) {
            Section section = new Section();
            return section;

        public Section[] newArray(int size) {
            return new Section[size];

Java Source Code List