Created
March 7, 2013 15:04
-
-
Save pzagor2/5108651 to your computer and use it in GitHub Desktop.
Wish code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Wish implements Parcelable { | |
public String name; | |
public Wish(){}; | |
public Wish(String name) | |
{ | |
this.name = name; | |
} | |
protected Wish(Parcel in) { | |
name = in.readString(); | |
} | |
public int describeContents() { | |
return 0; | |
} | |
public void writeToParcel(Parcel dest, int flags) { | |
dest.writeString(name); | |
} | |
public static final Parcelable.Creator<Wish> CREATOR = new Parcelable.Creator<Wish>() { | |
public Wish createFromParcel(Parcel in) { | |
return new Wish(in); | |
} | |
public Wish[] newArray(int size) { | |
return new Wish[size]; | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created with http://devk.it/proj/parcelabler/