05-03-2010 03:13 AM
Please help me as i have created one application that requires connection with the printer through Blackberry Bluetooth device.
I have created the connection with the printer using StreamConnection and then i have opened 2 Streams:-
1) DataInputStream :- For reading the bytes data
2) DataOutputStream :- For sending the bytes to the printer
Now, the problem is that sometimes this code works perfectly alright, i.e. the data is sent to the printer and is printed correctly. But sometimes it throws IOException. But after 2-3 tries continuously, it again starts working perfectly by printing the desired data.
I am not getting what the problem is and how it can be solved.
I am using Blackberry Curve-8310 and Operating System- 220.127.116.11(Platform-18.104.22.168)
Please help me out in solving this problem.
Thanks & Regards,