Back to project page LibGeppa.
The source code is released under:
Apache License
If you think the Android project LibGeppa 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 net.cattaka.libgeppa.data; //from w w w. j a v a2 s. c o m import android.os.Parcel; import android.os.Parcelable; public enum ConnectionCode implements Parcelable { UNKNOWN, DISCONNECTED, NO_DEVICE; @Override public int describeContents() { return 0; } @Override public void writeToParcel(Parcel dest, int flags) { // String???Parcel??????????? dest.writeString(this.name()); } public static final Parcelable.Creator<ConnectionCode> CREATOR = new Parcelable.Creator<ConnectionCode>() { @Override public ConnectionCode[] newArray(int size) { return new ConnectionCode[size]; } @Override public ConnectionCode createFromParcel(Parcel source) { return ConnectionCode.valueOf(source.readString()); } }; }