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 a 2 s. c o m import android.os.Parcel; import android.os.Parcelable; public enum DeviceState implements Parcelable { UNKNOWN, INITIAL, CONNECTING, CONNECTED, CLOSED; @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<DeviceState> CREATOR = new Parcelable.Creator<DeviceState>() { @Override public DeviceState[] newArray(int size) { return new DeviceState[size]; } @Override public DeviceState createFromParcel(Parcel source) { return DeviceState.valueOf(source.readString()); } }; }