title: android bluetooth printer connection?
body: <p>i had J2ME application to print data byte to printer.
  But now, i have to convert that code to android code.</p>
  
  <p>My problem is : 
  i can't send data byte[] to mobile printer from my device Galaxy Tab Froyo via bluetooth?</p>
  
  <p>here my simple code :</p>
  
  <pre><code>UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
  BluetoothSocket btSocket btSocket = device.createRfcommSocketToServiceRecord(MY_UUID);
  btSocket.connect();
  OutputStream outStream = btSocket.getOutputStream();
  String message = "this is message";
  byte[] msgBuffer = message.getBytes();
  outStream.write(msgBuffer.length);
  outStream.write(msgBuffer);
  </code></pre>
  
  <p>when i see the LogCat, it show that i through all that process with no error.</p>
  
  <p>can anyone help me?</p>
  
  <p>thanks in advance,</p>
  
  <p>aql</p>