How to send a file from android to a wifi printer programmatically and print the file?

I am developing a basket app for restaurants in Android 2.1. I want to print order data (customer information, basket data, total order amount) when the user submits the order. I want to use some WIFI printers to print data. Please help me with suitable examples ...

+4
source share
1 answer

1) The wireless printer that you will use usually provides SDKs or drivers along with their printers. Thus, it is basically very easy to integrate into your application. In my case, I used: http://www.starmicronics.com/printer/home.aspx

2) To print your handouts, you either need to convert your slides into bitmaps, or the byte again depends on the SDK requirements, for example, in what format they need information. So at this point you will convert your views / layouts into bitmaps.

This is the way I did, and depends on the specific requirements of the printer. So, first understand what your requirement is.

There are also printers that support bluetooth profiles. Let me know if you need more information.

+5
source

All Articles