Back to project page Visu.
The source code is released under:
Apache License
If you think the Android project Visu listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/***************************************************************************************** * BluetoothServiceMessage.java * * Enum que posee los distintos tipos de mensaje que puede enviar la clase * * BluetoothService a BluetoothHelper * ****************************************************************************************/ //from ww w . ja v a 2 s . com package com.ufavaloro.android.visu.bluetooth; public enum BluetoothServiceMessage { DISCONNECTED(1), LOOKING_FOR_DEVICES(2), LISTENING_RFCOMM(3), CONNECTED(4), NEW_SAMPLE(5), REMOTE_DEVICE(6), CONNECTION_LOST(7); private final int value; private BluetoothServiceMessage(int value){ this.value=value; } public static BluetoothServiceMessage values(int what) { switch(what){ case 1: return DISCONNECTED; case 2: return LOOKING_FOR_DEVICES; case 3: return LISTENING_RFCOMM; case 4: return CONNECTED; case 5: return NEW_SAMPLE; case 6: return REMOTE_DEVICE; case 7: return CONNECTION_LOST; default: return DISCONNECTED; } } public int getValue(){return value;} }//BluetoothServiceMessage