android code fix

Closed Posted May 11, 2014 Paid on delivery
Closed Paid on delivery

I need a piece of code to be fixed. This piece of code is used to send image to a bluetooth printer without user interaction. This snippet works on other bluetooth printers (not for image printing) but does not work with this one (CANON SELPHY CP800). this is the code

UUID uuid = [login to view URL]("00001105-0000-1000-8000-00805F9B34FB");

Method m = [login to view URL]().getMethod("createInsecureRfcommSocketToServiceRecord", new Class[] { [login to view URL] });

mBTsocket = (BluetoothSocket) [login to view URL](device, uuid);

[login to view URL]();

[login to view URL]();

Bitmap bitmap = [login to view URL]("/storage/emulated/0/DCIM/Camera/[login to view URL]");

ByteArrayOutputStream baos = new ByteArrayOutputStream();

[login to view URL]([login to view URL], 50, baos);

byte[] bytes = [login to view URL]();

OutputStream os = [login to view URL]();

DataOutputStream dos=new DataOutputStream(os);

[login to view URL](bytes);

[login to view URL]();

[login to view URL]();

the execution stops without any exeption at

[login to view URL](bytes);

and never returns

I need this piece of code to be fixed in order to work

Android Mobile App Development

Project ID: #5929130

About the project

Remote project Active Jun 18, 2014