API HELP – Simple Bluetooth Printer
1. Open your application
2. Create intent as below
Intent intent = new Intent();
intent.setComponent(new ComponentName(“com.iyaltamizh.bluetoothprint”, “com.iyaltamizh.bluetoothprint.Print”));
intent.putExtra(“content”,”Hello World”);
startActivity(intent);
3. create intent with componentName “com.iyaltamizh.bluetoothprint” and activity name is “com.iyaltamizh.bluetoothprint.Print”
4. Load your print content in putExtras as “content”
5. Start activity.
Sample Project URL : https://github.com/iyaltamizh/APIHELP
When to Use the Print Intent API
This API is for developers integrating Simple Bluetooth Printer into their own Android app — for example, a custom POS, inventory, or billing app that needs to trigger a print job without opening Simple Bluetooth Printer's own UI. Instead of building your own Bluetooth/ESC-POS printing stack, you hand off the content as plain text and let Simple Bluetooth Printer handle pairing, connection, and the actual print job.
Full Example
Intent intent = new Intent();
intent.setComponent(new ComponentName(
"com.iyaltamizh.bluetoothprint",
"com.iyaltamizh.bluetoothprint.Print"
));
intent.putExtra("content", "Hello World");
startActivity(intent);The receiving activity opens Simple Bluetooth Printer with the given content string queued for printing. If a printer is already selected in the app (see the main setup guide), the print happens immediately; otherwise the user is prompted to pick a paired printer first.
Troubleshooting
- Nothing happens on startActivity(): confirm Simple Bluetooth Printer is installed on the target device — the intent silently fails if the component isn't found.
- Garbled or missing characters: see the encoding guide for selecting the correct character set for non-ASCII content.
- Need images, QR codes, or barcodes, not just text: those aren't supported through this lightweight intent API — use the in-app editor for anything beyond plain text.
Related Resources
Sample project: github.com/iyaltamizh/APIHELP. For the full feature set (image printing, QR codes, AI templates), see the Simple Bluetooth Printer app page.