Find Jobs
Hire Freelancers

android code fix

$10-30 USD

Closed
Posted almost 10 years ago

$10-30 USD

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
Project ID: 5929130

About the project

Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of INDIA
khanna, India
0.0
0
Payment method verified
Member since Feb 16, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.