Back to all posts
Android7 min read·November 22, 2026

Printing Receipts From an Android App: Bluetooth Printer Basics

TB
ThynkBlox Apps Team
App Engineering

To print receipts from an Android app to a small Bluetooth thermal printer, the app must do more than send text. It needs to pair and reconnect reliably, format for the paper width, encode local-language text correctly, and handle a printer that is off or out of paper. It also needs a safe reprint and testing on the exact printer models your client uses.

How should the app pair with and reconnect to a printer?

Pairing is a one-time step. Reconnecting is what the cashier does fifty times a day, so design for that.

  • Let the user choose a printer from a list of paired devices, then remember the choice.
  • Reconnect automatically when the user taps Print. Do not make them open a settings screen first.
  • Show the saved printer's name on the print screen so a shop with two printers knows which one will respond.
  • Handle the Android Bluetooth permission prompt with a plain explanation of why the app needs it. For apps that target Android 12 or later, talking to an already-paired printer needs the user to allow access to nearby devices. The guide to permission requests covers the wording and timing.
  • Offer a clear way to forget the printer and choose another.

Some printers power down when idle, and the first print after a pause can fail while the connection is re-established. A single automatic retry, with a visible "Connecting to printer" state, handles this without confusing the user.

How do paper width and layout affect a receipt?

Small thermal printers take paper of a fixed width, and the number of characters per line follows from it. A layout that looks right on a phone screen can wrap badly on paper.

  • Treat paper width as a setting, not a constant. Let the shop pick the width that matches their roll.
  • Design the receipt as columns: item name, quantity, amount. Truncate or wrap long item names deliberately, rather than letting the printer break them mid-word.
  • Right-align amounts so totals line up.
  • Keep the header short. Shop name, address and tax details take paper and time.
  • Leave blank space at the end so the tear-off does not cut through the last line.

Screen design and print design are separate jobs. Decide what a receipt must show first; our article on designing invoice screens for a billing app helps with that content, and the print layout is then a compact version of it.

How do you print local languages correctly?

Some small printers support only a limited set of characters out of the box. A rupee sign, an accented letter or a script such as Devanagari, Tamil or Arabic may print as question marks or blocks.

Your options, in plain terms:

  • Use a character set the printer actually supports, and map your text to it.
  • Render the receipt as an image and print the image. This handles almost any script, but it is slower to send and small text can look fuzzy.
  • Keep a plain fallback, such as an English item name, for printers that cannot handle the script.

Test with real item names, including the longest and the most unusual. The principles in designing a mobile app for multiple languages apply to print as much as to screens.

What happens when the printer is off or out of paper?

The app often cannot tell exactly why a print failed. Be honest about that, and give the user a next step.

FailureWhat the user seesFix
Printer switched offNothing prints; the app seems frozenDetect the failed connection quickly, show "Printer not found. Check it is on and nearby", and offer Retry
Printer not pairedPrinter missing from the listExplain how to pair in system settings, then return to the app
Connection dropped mid-receiptHalf a receipt printsMark the print as incomplete and offer Reprint from the start
Out of paper or cover openPrinter light blinks, nothing printsShow a message to check paper and cover; keep the sale saved and offer Retry
Wrong paper width settingText cut off or squeezedProvide a width setting and a test print
Unreadable charactersQuestion marks or boxesSwitch character set or print as an image
Permission deniedPrint button does nothingExplain the need and link to app settings

Whatever happens, the sale must stay saved. A printing failure should never lose or duplicate the transaction. Our guide to preventing duplicate submissions explains why, and loading, empty and error states covers the screen patterns for these messages.

How should reprint work?

Customers ask for a second copy, and failed prints need repeating. Build reprint as a first-class action.

  • Add Reprint to the sale detail screen, not only to the end of checkout.
  • Reprint the stored receipt exactly as issued, using the original figures, not recalculated ones.
  • Mark copies clearly, for example with "Duplicate copy", so they are not mistaken for originals.
  • Consider restricting reprint by user role. The article on user roles and permissions helps decide who may do this.

How do you test on the printers your client uses?

Printers that look alike can behave differently in character support, connection speed and sleep behaviour. An emulator cannot reproduce a particular printer's behaviour.

  1. Ask the client which printer models and paper rolls they use, and borrow or buy those exact units.
  2. Pair, print, switch off, reconnect and print again, many times in a row.
  3. Print the longest receipt you can imagine, in every language the shop uses.
  4. Run the failure table above on purpose: power off, remove paper, walk out of range.
  5. Repeat on the phones the shop owner actually carries. See testing on low-end phones for what to look for.

If you build with Flutter, confirm early that Bluetooth printing works on your target devices, as described in checking Flutter support for device features.

What common mistakes should you avoid?

Testing only on one printer. A receipt that works on your desk may fail in the shop.

Hard-coding paper width. The shop may change rolls.

Tying the sale to the print. If printing fails, the sale should still be saved.

Silent failures. A button that does nothing teaches users to tap it repeatedly and print many copies.

Ignoring local text. Question marks on a customer's receipt look careless.

When does this not apply?

If the shop only needs to share a receipt by message or email, you may not need a printer at all. If the business uses a fixed counter system with a wired printer, the connection steps differ, though layout, language and reprint still matter.

What questions do founders often ask?

Do all Bluetooth thermal printers work with the same app?

Not automatically. Printers differ in supported commands, characters and paper width. Plan to test every model the client uses, and agree up front which models your app officially supports.

Why does the first print after a break often fail?

Some printers power down when idle, and the connection needs a moment to come back. Reconnecting automatically, with one retry and a visible connecting message, usually keeps the problem away from the cashier.

Can the app know whether the printer is out of paper?

Sometimes, but not on every printer. Some report their status and others do not. Design for uncertainty by showing a general "check paper and cover" message and keeping Retry available.

Should receipts be printed as text or as images?

Text is faster and lighter, but depends on supported characters. Images handle any script but print slower and can look less sharp. A practical approach is text by default and images only for languages the printer cannot handle.

Ready when you are

Planning an app of your own?

Tell us where your project is today. We will help you work out the scope before you commit to a budget.