¡@

Home 

2014/10/16 ¤W¤È 08:28:10

android Programming Glossary: zee

How to prevent Android bluetooth RFCOMM connection from dying immediately after .connect()?

http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after

BluetoothSocket sock private InputStream in public void test throws Exception if connected return BluetoothDevice zee BluetoothAdapter.getDefaultAdapter . getRemoteDevice 00 1C 4D 02 A6 55 Method m zee.getClass .getMethod createRfcommSocket.. connected return BluetoothDevice zee BluetoothAdapter.getDefaultAdapter . getRemoteDevice 00 1C 4D 02 A6 55 Method m zee.getClass .getMethod createRfcommSocket new Class int.class sock BluetoothSocket m.invoke zee Integer.valueOf 1 Log.d ZeeTest.. 1C 4D 02 A6 55 Method m zee.getClass .getMethod createRfcommSocket new Class int.class sock BluetoothSocket m.invoke zee Integer.valueOf 1 Log.d ZeeTest Connecting sock.connect Log.d ZeeTest Connected in sock.getInputStream byte buffer new byte..

How to send Hex Values via Bluetooth in Android

http://stackoverflow.com/questions/8037414/how-to-send-hex-values-via-bluetooth-in-android

with this private boolean connected false private BluetoothSocket sock private InputStream in private OutputStream out zee BluetoothAdapter.getDefaultAdapter .getRemoteDevice XX XX XX XX XX XX m zee.getClass .getMethod createRfcommSocket new Class.. InputStream in private OutputStream out zee BluetoothAdapter.getDefaultAdapter .getRemoteDevice XX XX XX XX XX XX m zee.getClass .getMethod createRfcommSocket new Class int.class sock BluetoothSocket m.invoke zee Integer.valueOf 1 sock.connect.. XX XX XX XX XX XX m zee.getClass .getMethod createRfcommSocket new Class int.class sock BluetoothSocket m.invoke zee Integer.valueOf 1 sock.connect in sock.getInputStream out sock.getOutputStream char test 0x55 0x0 0x0 0x0 0x0 0x50 0x2 0x0..