I am developing an application for Android Tablet,now in my application if i select print option then data should be print in the Bluetooth printer.to achieve this first i want to know how to recognize nearest Bluetooth devices and also how to print data in a Bluetooth printer.
Have you looked at any of the Android Bluetooth Documentation?
Star Micronics has an SDK for Android printing via Bluetooth (as well as ethernet and USB). You can download it here: http://www.starmicronics.com/support/SDKDocumentation.aspx.
At this point in time, the Android OS doesn't support native printing over Bluetooth.
In my experience, it's best to use an API and not an external application. The biggest reason is you get total control over printer behavior. It's easy too if the API is built intelligently. Using an external app is limiting because you can't customize your print outs the way you want to.
The Star SDK I linked you to has a really nice sample app that lets you test and customize a lot of printer functions to see them in action. Each function is documented in the source code. The commands and their parameters are also available in the app itself as a quick on screen reference which is convenient. On top of all that, it's well documented.
If you choose this way, you can send plain text to the printer along with commands. The API handles converting the data into what the printer can understand.
Related
Im currently developing an app for a handheld device, running Android OS and with a built-in termal printer. The app will be used for selling and ticketing. Now, boss ordered a few POS for testing (from China) and, well, shipping takes forever to get here so im doing some research in terms on how the "printing" part works. As of right now, what im doing is storing the tickets inside the sdcard and then i download the file to my pc and print it using my TSP700 desktop printer. My question is.. when it comes to printing on the built-in printer, is it possible to send the file that's supposed to be printed right to the printing queue without having to store a copy of it in the sdcard? Anyone with experience on this kind of situation?
In a word, yes. There isn't any reason for the SD card to be involved at all. I've used receipt printers that are connected via Bluetooth. Since yours is built in, it's likely to be USB. Hopefully the manufacturer publishes a well-documented SDK for the printer, but don't count on it. I had to write my own frame-based serial protocols and receipt formatters. There's probably not a printing queue unless you write one.
How your app can communicate with the built-in printer depends on the manufacturer’s implementation. I would start by finding out from the manufacturer what interface is available to your app and any SDK or samples they offer to integrate printing into your app.
I am interested to develop bluetooth printer app for Android so please guide me how to begin
it?
Is there any free third party library for that ?
Star Micronics has an SDK for Android printing via Bluetooth (as well as ethernet, wifi, and USB). You can download it here: http://www.starmicronics.com/support/SDKDocumentation.aspx.
You can't print natively from Android at this point in time so the alternate solutions are a 3rd party API, finding a 3rd party printing app, or writing your own printer support.
In my experience, it's best to use an API and not an external app. The biggest reason is you get total control over printer behavior. Using an external app is limiting because you can't customize your print outs the way you want to. Writing a printer driver is too hard because you need to intimately know the device for perfect support... the API gives you full control over the device without all the frustration of re-engineering the whole process.
The Star SDK I linked you to has an API and a really nice sample app that lets you test and customized printer functions to see them in action. It's well documented too.
If you choose this way, you can send plain text to the printer along with commands. The API handles converting the data into what the printer can understand.
Does any one provide me some information about how to connect a bluetooth printer from android platform (android tablet).
How do i achieve this?
Are you looking to print to a big desktop printer or a receipt printer?
If you're looking for a receipt printer, Star Micronics has an Android SDK that you can freely download here: http://www.starmicronics.com/support/SDKDocumentation.aspx.
It covers USB, bluetooth, and wifi/ethernet printing.
This SDK has a really nice sample app that lets you test and customize a lot of printer functions to see them in action. Each function is documented in the source code. The commands and their parameters are also available in the app itself as a quick on screen reference which is convenient. On top of all that, it's well documented.
If you use their SDK, you can send plain text to the printer along with commands. The API handles converting the data into what the printer can understand.
i need to find a way to print file/content/.. programmatically from my application to blue-tooth printer (or) printer connected with USB.
Could anybody give me a idea? any reference will be helpful.
is there any open source api available for printing in android?
Are you looking to print to a big desktop printer or a receipt printer?
If you're looking for a receipt printer, Star Micronics has an Android SDK that you can freely download here: http://www.starmicronics.com/support/SDKDocumentation.aspx.
It covers USB, bluetooth, and ethernet printing.
This SDK has a really nice sample app that lets you test and customize a lot of printer functions to see them in action. Each function is documented in the source code. The commands and their parameters are also available in the app itself as a quick on screen reference which is convenient. On top of all that, it's well documented.
If you use their SDK, you can send plain text to the printer along with commands. The API handles converting the data into what the printer can understand.
You need to create Connection between your application & bluetooth printer.
Look at to my answer here.
I want to bring a functionality to my Android app, that users can connect from mobile device (mobile or tablet) via USB / Wi-Fi / Bluetooth and can take out the prints.
I search over the Internet but not finding any proper solution which is achieving results.
Looking for your help / guide further to decide our Android Application scope.
Thanks in advance !
Star Micronics has an SDK for Android printing via Bluetooth, WiFi, and USB. You can download it here: http://www.starmicronics.com/support/SDKDocumentation.aspx.
This SDK has a really nice sample app that lets you test and customize a lot of printer functions to see them in action. Each function is documented in the source code. The commands and their parameters are also available in the app itself as a quick on screen reference which is convenient. On top of all that, it's well documented.
Basically, you can send plain text to the printer along with commands. The API handles converting the data into what the printer can understand.