Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.IOException; import java.io.OutputStream; import android.bluetooth.BluetoothSocket; public class Main { public static void sendData(byte[] bytes, BluetoothSocket socket) throws IOException { OutputStream out = socket.getOutputStream(); out.write(bytes, 0, bytes.length); out.flush(); out.close(); } }