Android Question Send to Printer

buras3

Active Member
Licensed User
Longtime User
Hello

Is it possible to send text to printer by Wifi or Bluetooth ?

Tanks
Michael
 

buras3

Active Member
Licensed User
Longtime User
Tank you
But I can't find printer with Bluetooth
I did find with wifi
is it possible to convert this code to b4a ? or send to this app intent ? https://play.google.com/store/apps/details?id=com.brother.ptouch.iprintandlabel&hl=en

<how to show this ?>
2.2.5.Sample code for supporting Wi-Fi
Import the library into source code. import com.brother.ptouch.sdk.Printer; import com.brother.ptouch.sdk.PrinterInfo; import com.brother.ptouch.sdk.PrinterStatus; import android.hardware.usb. LabelInfo;
The sample of print function public void print(){ Thread trd = new Thread(new Runnable(){ @override public void run() { String externalStorageDir = Environment.getExternalStorageDirectory().toString(); //print setting Printer printer = new Printer(); PrinterInfo printInfo = new PrinterInfo(); printInfo.printerModel = PrinterInfo.Model.PT_P750W; printInfo.port = PrinterInfo.Port.NET; printInfo.ipAddress = "172.0.0.1"; printInfo.labelNameIndex = LabelInfo.PT.W24.ordinal(); printer.setPrinterInfo(printInfo);
</how to show this ?>

Tank you
 
Upvote 0

buras3

Active Member
Licensed User
Longtime User
Tank you
So is it possible to connect printer to USB and print from the tablet (without computer)
with this ESC/POS commands ?
 
Upvote 0

buras3

Active Member
Licensed User
Longtime User
but i need sticker for shipping it's the same?
I haven't seen esc/pos in the Sdk
 
Last edited:
Upvote 0

buras3

Active Member
Licensed User
Longtime User
Tank you very much
But I don't know how to connect to the printer
Is there a simple way for me to print from an app ?
I need to buy a shipping label printer and i don't know what to buy
it's very urgent
 
Upvote 0

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…