Hello, I am also creating one app that prints receipt; one thing that really confuses me is that which permisison should i ask like there are so many for bluetooth only. can anyone help in deciding which one should I be requesting if I just want to connect to printer via bluetooth.
First of all, thanks for the video! My problem is the app is detecting the printer but when I click the print button it says "Bluetooth Device not connected". Is like my thermal printer is linked to my phone but not active. The thing is, I tried the printer with another app and it worked!
add this before call print_inv() and checkpermission(): if (ContextCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_SCAN) != PackageManager.PERMISSION_GRANTED) { // If not have permission request it ActivityCompat.requestPermissions(this, arrayOf(Manifest.permission.BLUETOOTH_SCAN), MY_PERMISSIONS_REQUEST_BLUETOOTH_SCAN) } else { // If you have permission continue print_inv() } Add this permission to your manifest:
@@deccontech I am using 58mm thermal printer from Hoin company. It supports Arabic. It supports windows-1256 and CP864 code pages. But I can't print Arabic. Do you have any idea? If so, can you make a video?
val dialogView:View = inflater.inflate(R.layout.scan_bt, root: null) Expecting ')' Unexpected tokens (use ';' to separate expressions on the same line) i am getting this error......pls help me some one
Hello, I am also creating one app that prints receipt; one thing that really confuses me is that which permisison should i ask like there are so many for bluetooth only. can anyone help in deciding which one should I be requesting if I just want to connect to printer via bluetooth.
First of all, thanks for the video!
My problem is the app is detecting the printer but when I click the print button it says "Bluetooth Device not connected". Is like my thermal printer is linked to my phone but not active. The thing is, I tried the printer with another app and it worked!
Source Code:
play.google.com/store/apps/details?id=com.sunilnaithani.sourcecoders
add this before call print_inv() and checkpermission():
if (ContextCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_SCAN)
!= PackageManager.PERMISSION_GRANTED) {
// If not have permission request it
ActivityCompat.requestPermissions(this,
arrayOf(Manifest.permission.BLUETOOTH_SCAN),
MY_PERMISSIONS_REQUEST_BLUETOOTH_SCAN)
} else {
// If you have permission continue
print_inv()
}
Add this permission to your manifest:
Nice video ❤❤
Thanks 🤗
i got this error = printer error id....em.mobile.bluetoothprinterapp D Conversion = ' '. what's mean sir, can you help me please?
I want you to make a project
source code is pay walled. not much point in trusting a tutorial like this. seen as others seem to get errors
More a good video! Thanks
Thank you too!
is code se qr kaise print kare
muje image print karni thi black and white mai plss help me
bro is how to align the text which is print in the printer?
Source Code:
play.google.com/store/apps/details?id=com.sunilnaithani.sourcecoders
Can you print arabic character on your thermal printer?.
Printer not supposed if supported then u can do it
@@deccontech I am using 58mm thermal printer from Hoin company. It supports Arabic. It supports windows-1256 and CP864 code pages. But I can't print Arabic. Do you have any idea? If so, can you make a video?
is it Possible To Print WebView
Yes
@@deccontech Any example code you show me Please
val dialogView:View = inflater.inflate(R.layout.scan_bt, root: null) Expecting ')'
Unexpected tokens (use ';' to separate expressions on the same line) i am getting this error......pls help me some one
thank you :)))
You're welcome!
Thanks
Welcome
Thanks, I only came up with a problem and that is that before the title I see a letter (b)
@@deccontech
@@adielhernandez7164 I couldn't understand the problem please describe
@@deccontech In the first text string I get a character that is B when I print from the printer
@@adielhernandez7164 adjust codes because codes depending on printer firmware version
can you give me source code thank you very much. Please!
Source Code:
play.google.com/store/apps/details?id=com.sunilnaithani.sourcecoders
BlueTooth Printer not connected
@@JirawatAkkanit pair printer with phone manually then print