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. java2s.c om import android.os.Parcel; import android.os.Parcelable; public enum DeviceEventCode implements Parcelable { UNKNOWN, DISCONNECTED, NO_DEVICE, ON_REGISTER; @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<DeviceEventCode> CREATOR = new Parcelable.Creator<DeviceEventCode>() { @Override public DeviceEventCode[] newArray(int size) { return new DeviceEventCode[size]; } @Override public DeviceEventCode createFromParcel(Parcel source) { return DeviceEventCode.valueOf(source.readString()); } }; }