Back to project page BusWear.
The source code is released under:
Apache License
If you think the Android project BusWear listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pl.tajchert.buswear.sample; /*from w w w. ja va 2 s .c o m*/ import android.os.Parcel; import android.os.Parcelable; public class CustomObject implements Parcelable { //implements Parcelable but I would suggest using Parceler or Auto-Parcel library (or any other). private String name; public CustomObject(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(name); } public CustomObject(Parcel in){ this.name = in.readString(); } @Override public String toString() { return "CustomObject{" + "name='" + name + '\'' + '}'; } }