how to send a file from android to wifi printer programatically and print the file?

10,292

1) The wireless printer you will be using generally provide SDKs or drivers along with their printers. So, its basically very easy to integrate in your application. In my case I used: http://www.starmicronics.com/printer/home.aspx

2) To print your slips what you need to do is either convert your slips into bitmaps or bytes again depends upon the SDK's requirement like in what format they need information. So in this stage you will be converting your views/layouts in bitmaps.

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

There are printers supporting bluetooth profiles too. Let me know if you need more information.

Share:
10,292
Anoop ka
Author by

Anoop ka

Updated on June 04, 2022

Comments

  • Anoop ka
    Anoop ka about 2 years

    I am developing a shopping cart application for Restaurants in Android 2.1 . I want to print the order details ( customer details , cart details, order total) , when user submit the order . I want to use some WIFI printer for printing the data. Please help me with suitable examples ...

  • Anoop ka
    Anoop ka almost 12 years
    Thanks for the answer . I want to print the receipt for customer after ordering . I want the app to work on all WiFi printers ( all companies ). Please help me with suitable examples...
  • Anoop ka
    Anoop ka almost 12 years
    Hi abhy can you tell ,is Starmicronics support WiFi .
  • Nandhini Devi
    Nandhini Devi almost 10 years
    @Anoopka could you share your code which you got for wifi printer