Back to project page BTSerialConsole.
The source code is released under:
MIT License
If you think the Android project BTSerialConsole 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 com.neykov.bluetoothserialconsole.connection.enums; //w w w .j a v a 2 s . co m import android.os.Parcel; import android.os.Parcelable; //Enumerate Databit constant public enum EDataBits implements Parcelable { D5, D6, D7, D8; @Override public int describeContents() { return 0; } @Override public void writeToParcel(final Parcel dest, final int flags) { dest.writeInt(ordinal()); } public static final Creator<EDataBits> CREATOR = new Creator<EDataBits>() { @Override public EDataBits createFromParcel(final Parcel source) { return EDataBits.values()[source.readInt()]; } @Override public EDataBits[] newArray(final int size) { return new EDataBits[size]; } }; }