How To Print Bluetooth Thermal Printer | Android Studio kotlin

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 36

  • @AayushSarikhada-ss
    @AayushSarikhada-ss 5 месяцев назад +2

    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.

  • @thaMikeJey
    @thaMikeJey 11 месяцев назад

    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!

    • @deccontech
      @deccontech  11 месяцев назад

      Source Code:
      play.google.com/store/apps/details?id=com.sunilnaithani.sourcecoders

    • @marvinzavala5638
      @marvinzavala5638 9 месяцев назад

      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:

  • @ariyankabir147
    @ariyankabir147 7 месяцев назад

    Nice video ❤❤

  • @ihsannurakmal427
    @ihsannurakmal427 8 месяцев назад

    i got this error = printer error id....em.mobile.bluetoothprinterapp D Conversion = ' '. what's mean sir, can you help me please?

  • @calming_king-wz6hr
    @calming_king-wz6hr 2 месяца назад +1

    I want you to make a project

  • @OutOfNameIdeas2
    @OutOfNameIdeas2 4 месяца назад +1

    source code is pay walled. not much point in trusting a tutorial like this. seen as others seem to get errors

  • @AndreSilva-yr9jm
    @AndreSilva-yr9jm Год назад

    More a good video! Thanks

  • @kigehlot
    @kigehlot 5 месяцев назад

    is code se qr kaise print kare
    muje image print karni thi black and white mai plss help me

  • @nivashB-b4t
    @nivashB-b4t 11 месяцев назад

    bro is how to align the text which is print in the printer?

    • @deccontech
      @deccontech  11 месяцев назад

      Source Code:
      play.google.com/store/apps/details?id=com.sunilnaithani.sourcecoders

  • @gulfappdeveloper2849
    @gulfappdeveloper2849 10 месяцев назад

    Can you print arabic character on your thermal printer?.

    • @deccontech
      @deccontech  10 месяцев назад

      Printer not supposed if supported then u can do it

    • @gulfappdeveloper2849
      @gulfappdeveloper2849 10 месяцев назад

      @@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?

  • @varungupta3164
    @varungupta3164 9 месяцев назад

    is it Possible To Print WebView

    • @deccontech
      @deccontech  9 месяцев назад

      Yes

    • @varungupta3164
      @varungupta3164 9 месяцев назад

      @@deccontech Any example code you show me Please

  • @sridevipindi1547
    @sridevipindi1547 5 месяцев назад

    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

  • @quangquang4588
    @quangquang4588 Год назад

    thank you :)))

  • @adielhernandez7164
    @adielhernandez7164 Год назад

    Thanks

    • @deccontech
      @deccontech  Год назад +1

      Welcome

    • @adielhernandez7164
      @adielhernandez7164 Год назад

      Thanks, I only came up with a problem and that is that before the title I see a letter (b)
      @@deccontech

    • @deccontech
      @deccontech  Год назад

      @@adielhernandez7164 I couldn't understand the problem please describe

    • @adielhernandez7164
      @adielhernandez7164 Год назад

      @@deccontech In the first text string I get a character that is B when I print from the printer

    • @deccontech
      @deccontech  Год назад

      @@adielhernandez7164 adjust codes because codes depending on printer firmware version

  • @quangquang4588
    @quangquang4588 Год назад

    can you give me source code thank you very much. Please!

    • @deccontech
      @deccontech  Год назад +1

      Source Code:
      play.google.com/store/apps/details?id=com.sunilnaithani.sourcecoders

  • @JirawatAkkanit
    @JirawatAkkanit 3 месяца назад

    BlueTooth Printer not connected

    • @deccontech
      @deccontech  3 месяца назад

      @@JirawatAkkanit pair printer with phone manually then print