Тёмный

Android Development Tutorial - Bluetooth Print 

EDMT Dev
Подписаться 113 тыс.
Просмотров 51 тыс.
50% 1

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 290   
@charliewason7446
@charliewason7446 Год назад
The printer was a bit complicated to hook up ru-vid.comUgkxciSwynMJ7PnUvvx11rewiu-yFBkZTl53 but it does the job very efficiently. I like the ink wells versus the ink cartages that cost an arm and a leg. It prints quickly and the quality is excellent. It shuts off when not in use, so you have to remember to turn it on. Overall, it exceeds my expectations. I'll update my review in a couple of months.
@eddydn71
@eddydn71 Год назад
Thanks. I will try
@brdev7840
@brdev7840 3 года назад
Thank you for tutorial you're the best, i just have one question what i need to change for making it work for 80mm printers ?
@eddydn71
@eddydn71 3 года назад
:-? I think we need change paper size
@ASAD-zk8hp
@ASAD-zk8hp 5 лет назад
Bro god bless you visiting ur channel after long. feeling good
@eddydn71
@eddydn71 5 лет назад
You're welcome my bro
@HabeshaDeveloper
@HabeshaDeveloper 5 лет назад
man you are genius ..... and please sir continue the multi restaurant serious .... thanks
@eddydn71
@eddydn71 5 лет назад
I will try my dear :D Thank you for your idea
@samurbandy
@samurbandy Год назад
I'm struggling looking for how to cut paper using Printooth. I'm about to give up...
@redwansharafatkabir9644
@redwansharafatkabir9644 Год назад
Great. I am trying this solution for BLE printer. My app is scanning BLE printer, but after selecting the device it doesn't print anything. What can be the issue? Can you please help me in this regard !
@eddydn71
@eddydn71 Год назад
I will try to research. I used to have a device for test, now i don't. So i need find device :(
@redwansharafatkabir9644
@redwansharafatkabir9644 Год назад
@@eddydn71 Okay. Thanks for your cooperative approach. I will also share here if I find out a solution.
@fustibal
@fustibal Год назад
Can I send a webhook request from server to phone and get a printout? like Uber eats?
@eddydn71
@eddydn71 Год назад
Yes, but we need something like WebAPI to easy handle it
@yassinedarif3353
@yassinedarif3353 2 года назад
Thank you for the project. I have some errors in the code, is it because of new version of android studio that i use? If so what version you used in this project.
@ZHANSKY
@ZHANSKY 2 года назад
is there a print tutorial like this but with user input and can display the time?
@HamidShaikh-hw2um
@HamidShaikh-hw2um 5 лет назад
sir i have question. before ask i started research about arduino and python means i know we can use python with "android studio" but i don't know, in android studio can we create app to control wifi & Bluetooth to control arduino?
@eddydn71
@eddydn71 5 лет назад
You can publish API from Python and use android like a client :D
@HamidShaikh-hw2um
@HamidShaikh-hw2um 5 лет назад
so will i control arduino using android as client by publish Python API?
@HamidShaikh-hw2um
@HamidShaikh-hw2um 5 лет назад
also thank you for given link of all image stream docs
@shubhamnaik4205
@shubhamnaik4205 4 года назад
Sir, how did u connect ur mobile with the printer at the very first while printing ?
@eddydn71
@eddydn71 4 года назад
I just tell my friend test for me :( Because i don't have device
@shubhamnaik4205
@shubhamnaik4205 4 года назад
@@eddydn71 Thanks, it worked for me automatically.
@FranciscoJavierRamirezAyala
Is there any way to know if the printer is out of paper with this library?
@franciscorivera4351
@franciscorivera4351 3 года назад
Excellent video, thanks! I already implemented it to my project, it doesn´t show any errors, but when I click to the buttom "Pair/Unpair", it shows a new window with the tittle "Searching" but it doesn´t do anything. Could you please guide me with this issue? This part is not in the video, so I´m lost on it.
@eddydn71
@eddydn71 3 года назад
Maybe it can't connect to your drive, try with other device
@flaviobarros8305
@flaviobarros8305 5 лет назад
Awesome! ..also Still Excited and Hoping the vote for the Student app series
@eddydn71
@eddydn71 5 лет назад
I will try to create this series soon , thank you for your idea my bro
@flaviobarros8305
@flaviobarros8305 5 лет назад
@@eddydn71 🙂👍Thank u
@kennethmallari127
@kennethmallari127 2 года назад
Learning to code using jetpack compose, how to properly add its repository and dependency?
@trunghieu22499
@trunghieu22499 3 года назад
please help me, can this way print the invoice or just print text ?
@eddydn71
@eddydn71 3 года назад
@.@ You already simplest example, so you can make text to invoice you want !
@jawadnas3526
@jawadnas3526 4 года назад
great job. i followed you step by step ..except that my min sdk is 23 ... and i got null reference exception on prinitng.print
@eddydn71
@eddydn71 4 года назад
Have you init it ? Follow my tutorial step by step please
@jawadnas3526
@jawadnas3526 4 года назад
@@eddydn71 yes sir step by step
@jawadnas3526
@jawadnas3526 4 года назад
@@eddydn71 btw i am sure the the app is init
@mopapomopapo9731
@mopapomopapo9731 4 года назад
@@jawadnas3526 Did you manage to solve the null reference error....I a getting the same, please help!!
@mopapomopapo9731
@mopapomopapo9731 4 года назад
@EDMT Dev please chip in I'm literally stuck
@yogeshtripathi1635
@yogeshtripathi1635 5 лет назад
Hi sir, Will this code work with every printer having Bluetooth hardware in it?
@eddydn71
@eddydn71 5 лет назад
Yes my dear :D I think so :D Sorry i can't test all device :D
@sidique5269
@sidique5269 4 года назад
No I am using hp sprocket printer..not working with that
@alisampson6639
@alisampson6639 4 года назад
Hello Sir. Does this library support creating a custom pdf and printing with it?
@eddydn71
@eddydn71 4 года назад
No, you can see my Create PDF and Print video :D
@ZeroTwoTwoFive
@ZeroTwoTwoFive 4 года назад
Hi Eddy, this tutorial bluetooth print and other pdf print tutorial, is it have to use androidx ?
@eddydn71
@eddydn71 4 года назад
:) Dear, AndroidX and Android is just difference package name, other features is same :) Doesn't matter!
@georgeonil...
@georgeonil... 3 года назад
issue: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mazenrashed.printooth.utilities.Printing.print(java.util.ArrayList)' on a null object reference FIX:---- change: printing.print(printables); To this: Printooth.INSTANCE.printer().print(printables);
@eddydn71
@eddydn71 3 года назад
You're welcome, my bro :D
@Btechtraders
@Btechtraders 4 года назад
printing.print(printables); Printooth.INSTANCE.printer().print(printables); Why does it have 2 print function and the printing gives a null error 'void com.mazenrashed.printooth.utilities.Printing.print(java.util.ArrayList)' on a null object reference can you help ??
@eddydn71
@eddydn71 4 года назад
Printing object is null ! Have you init it in Application.java like tutorial ?
@Btechtraders
@Btechtraders 4 года назад
@@eddydn71 yeah I have initialized it in application.java, But in the activity we are not initializing the printing variable, we always check whether it's not equal to null. Is that the right way?
@Btechtraders
@Btechtraders 4 года назад
@@eddydn71 can you tell me whats the differecne between printing.print(printables); Printooth.INSTANCE.printer().print(printables); this two print functions?
@Btechtraders
@Btechtraders 4 года назад
@@eddydn71 We are initialing Printooth in app.java right? Not printing.
@shubhamnaik1982
@shubhamnaik1982 4 года назад
Sir, How to unregisterReceiver in the onStop() method ? i am getting Activity com.mazenrashed.printooth.ui.ScanningActivity has leaked IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@be148a4 that was originally registered here. Are you missing a call to unregisterReceiver()? Please help me out .
@eddydn71
@eddydn71 4 года назад
I will check soon my bro, sorry :)
@rubanjap
@rubanjap 3 года назад
Hi, Can we print QR code using the android app inThermal Printer? Plz reply me
@ellengracefabian6635
@ellengracefabian6635 5 лет назад
Hello Sir, can I ask what kind of device did you use for printing?
@eddydn71
@eddydn71 5 лет назад
I've show my device in my tutorial , please check
@someshmahajan7903
@someshmahajan7903 5 лет назад
Awesome Is this work on any Bluetooth enabled printer ?
@eddydn71
@eddydn71 5 лет назад
Yes my dear :D I think so :D Sorry i can't test all device :D
@someshmahajan7903
@someshmahajan7903 5 лет назад
@@eddydn71 okay, nice ✌️
@Btechtraders
@Btechtraders 4 года назад
Please change this if(!Printooth.INSTANCE.hasPairedPrinter()) printing=Printooth.INSTANCE.printer(); to if(Printooth.INSTANCE.hasPairedPrinter()) printing=Printooth.INSTANCE.printer(); This is the error i was getting, thats why printing variale was not initiated. Please change the error as any popup or text edit in your video.
@eddydn71
@eddydn71 4 года назад
You're welcome my bro
@joaopinto1121
@joaopinto1121 3 года назад
Greetings, Sir. I am a beginner and followed the entire video and in the end I got the following error: java.lang.RuntimeException: Unable to start activity ComponentInfo{jc.androidbluetoothprinter/com.mazenrashed.printooth.ui.ScanningActivity}: Can you help me ? I thank you in advance.
@eddydn71
@eddydn71 3 года назад
Show me more about your log cat :D You cut some useful information
@joaopinto1121
@joaopinto1121 3 года назад
@@eddydn71 Processo: jc.androidbluetoothprinter, PID: 19331 java.lang.RuntimeException: Incapaz de iniciar atividade ComponentInfo{jc.androidbluetoothprinter/com.mazenrashed.printooth.ui.ScanningActivity}: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class androidx.swiperefreshlayout.widget.SwipeRefreshLayout em android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2924) em android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985) em android.app.ActivityThread.-wrap14(ActivityThread.java) em android.app.ActivityThread$H.handleMessage (ActivityThread.java:1635) em android.os.Handler.dispatchMessage (Handler.java:102) em android.os.Looper.loop (Looper.java:154) em android.app.ActivityThread.main (ActivityThread.java:6692) em java.lang.reflect.Method.invoke (Método Nativo) em com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1468) em com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358) Causada por: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class androidx.swiperefreshlayout.widget.SwipeRefreshLayout Causada por: android.view.InflateException: Binary XML file line #15: Error inflating class androidx.swiperefreshlayout.widget.SwipeRefreshLayout Causado por: java.lang.ClassNotFoundException: Não encontrei classe "androidx.swiperefreshlayout.widget.SwipeRefreshLayout" no caminho: DexPathList[[arquivo zip "/data/app/jc.androidbluetoothprinter-1/base.apk"],nativeLibraryDirectories=[/data/app/jc.androidbluetoothprinter-1/lib/arm64, /system/lib64, /vendor/lib64]] em dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:56) em java.lang.ClassLoader.loadClass (ClassLoader.java:380) em java.lang.ClassLoader.loadClass (ClassLoader.java:312) em android.view.LayoutInflater.createView (LayoutInflater.java:616) em android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:794) em android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:734) em android.view.LayoutInflater.rInflate (LayoutInflater.java:865) em android.view.LayoutInflater.rInflateChildren (LayoutInflater.java:828) em android.view.LayoutInflater.inflate (LayoutInflater.java:525) em android.view.LayoutInflater.inflate (LayoutInflater.java:427) em android.view.LayoutInflater.inflate (LayoutInflater.java:378) em androidx.appcompat.app.AppCompatDelegateImpl.setContentView (AppCompatDelegateImpl.java:696) em androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170) em com.mazenrashed.printooth.ui.ScanningActivity.onCreate(ScanningActivity.kt:31) em android.app.Activity.performCreate(Atividade.java:6912) em android.app.Instrumentation.callActivityOnCreate (Instrumentação.java:1126) em android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2877) em android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985) em android.app.ActivityThread.-wrap14(ActivityThread.java) em android.app.ActivityThread$H.handleMessage (ActivityThread.java:1635) em android.os.Handler.dispatchMessage (Handler.java:102) em android.os.Looper.loop (Looper.java:154) em android.app.ActivityThread.main (ActivityThread.java:6692) em java.lang.reflect.Method.invoke (Método Nativo) em com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1468) em com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358)
@joaopinto1121
@joaopinto1121 3 года назад
@@eddydn71 E/AndroidRuntime: FATAL EXCEPTION: main Process: jc.androidbluetoothprinter, PID: 19331 java.lang.RuntimeException: Unable to start activity ComponentInfo{jc.androidbluetoothprinter/com.mazenrashed.printooth.ui.ScanningActivity}: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class androidx.swiperefreshlayout.widget.SwipeRefreshLayout at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2924) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985) at android.app.ActivityThread.-wrap14(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1635) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6692) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358) Caused by: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class androidx.swiperefreshlayout.widget.SwipeRefreshLayout Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class androidx.swiperefreshlayout.widget.SwipeRefreshLayout Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.swiperefreshlayout.widget.SwipeRefreshLayout" on path: DexPathList[[zip file "/data/app/jc.androidbluetoothprinter-1/base.apk"],nativeLibraryDirectories=[/data/app/jc.androidbluetoothprinter-1/lib/arm64, /system/lib64, /vendor/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at android.view.LayoutInflater.createView(LayoutInflater.java:616) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734) at android.view.LayoutInflater.rInflate(LayoutInflater.java:865) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828) at android.view.LayoutInflater.inflate(LayoutInflater.java:525) at android.view.LayoutInflater.inflate(LayoutInflater.java:427) at android.view.LayoutInflater.inflate(LayoutInflater.java:378) at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:696) at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170) at com.mazenrashed.printooth.ui.ScanningActivity.onCreate(ScanningActivity.kt:31) at android.app.Activity.performCreate(Activity.java:6912) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2877) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985) at android.app.ActivityThread.-wrap14(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1635) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6692) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
@PTeaSYstem
@PTeaSYstem 4 года назад
how to print to bluetooth in web view ?
@eddydn71
@eddydn71 4 года назад
This is show you how to print data, so you can make an data from WebView first Or WebView support print to select printer
@bmw335hdk2
@bmw335hdk2 Год назад
Hello Sir, This library work with all smartphone.. But not with Xiaomi.. The screen stuck on "Scanning.." Do you have any solution regarding this matter?
@redwansharafatkabir9644
@redwansharafatkabir9644 Год назад
Hello, I am also facing this problem. I am trying to print in BLE printer. Did you find any solution?
@alissonjohn
@alissonjohn 5 лет назад
congratulaitions !!!!!!!!!! veryyyyyyyyy thnks
@eddydn71
@eddydn71 5 лет назад
You're welcome my bro
@DeepakKumar-Dalsinghsarai
@DeepakKumar-Dalsinghsarai 5 лет назад
Choose image from gallery and then print....? How it possible
@eddydn71
@eddydn71 5 лет назад
Similar this tutorial but simpler , you can create print adapter for image :)
@zameer-haider
@zameer-haider 4 года назад
Please create video. This process. Pick image to gallery for example ticket image. And print it! Please please.
@palectores
@palectores 4 года назад
You can make this as a printer service? how much I need to donate to see a tutorial of you making it as a printer service... I mean, than another apps can send documents to this app to be printed, like print raw or print+, in the playstore... anyway, great job man,
@eddydn71
@eddydn71 4 года назад
I will try to create tutorial my bro
@itdeveloper5481
@itdeveloper5481 5 лет назад
hi sir how can i print receipt more than one at a same time programmatically
@eddydn71
@eddydn71 5 лет назад
:-? I think we can't because it need schedule document print
@itdeveloper5481
@itdeveloper5481 5 лет назад
@@eddydn71 okay , thanks
@abdulkarimalbaik3873
@abdulkarimalbaik3873 5 лет назад
Amazing 💛💛💛
@eddydn71
@eddydn71 5 лет назад
You're welcome my bro
@tranhoa9363
@tranhoa9363 4 года назад
I have error read failed : Socket might closed or timeout, read red -1 after show has toast connection to printer. How I can fix it?
@eddydn71
@eddydn71 4 года назад
Look like have problem between your Printer and App, try again my bro
@yusufadebanjo300
@yusufadebanjo300 2 года назад
I have the same error...
@mohammedmosalam9872
@mohammedmosalam9872 3 года назад
I have this problem : io.paperdb.PaperDbException: Paper.init is not called can help me?
@eddydn71
@eddydn71 3 года назад
Please add Paper.init(this); in onCreate method, or above code of Paper
@leandro-mendes
@leandro-mendes 16 дней назад
​@@eddydn71 Hi sir, can you pass some code to to understand where?
@androidfirebase3095
@androidfirebase3095 3 года назад
It's giving an error in the library's implantation implementation 'com.github.mazenrashed:Printooth:1.2.1' I can't call her on OnCreate I already put 1.2.2 and error the same way
@eddydn71
@eddydn71 3 года назад
Please follow my tutorial step by step, you lacking define maven { url 'jitpack.io' } in your project
@ypchin8314
@ypchin8314 3 года назад
Hi! Sir, APK build success, can install ,but can not open the apps, why? pls help!
@eddydn71
@eddydn71 3 года назад
Hi, try check log cat when app crash :D
@ziauddinahmed2684
@ziauddinahmed2684 3 года назад
Created the app successfully. But having an issue with lot of spacing. After printing text the printer takes 3/4 line gap then printing image. Is there any way to solve the issue?
@eddydn71
@eddydn71 3 года назад
Try play with code print my bro :D
@ariskadian1555
@ariskadian1555 5 лет назад
awesome! thanks for this tutorial, print image and text in one row, is it possible?
@eddydn71
@eddydn71 5 лет назад
Sure my dear :D
@razanabughazaleh8342
@razanabughazaleh8342 5 лет назад
How do this?
@eddydn71
@eddydn71 5 лет назад
@@razanabughazaleh8342 You already code in my tutorial , you can modify it :D
@razanabughazaleh8342
@razanabughazaleh8342 5 лет назад
I need one button at same time print image and text, but in you tutorial this happens at two buttons
@eddydn71
@eddydn71 5 лет назад
@@razanabughazaleh8342 T_T You just copy code from button two to button one to print 2 case in 1 time
@vasilemihai1465
@vasilemihai1465 3 года назад
Hello!! I have this error TextPrintable(java.lang.String, byte, byte, int, byte, byte, byte, ...)' has private access in 'com.mazenrashed.printooth.data.printable.TextPrintable' Do you have a solution for it? thanks, regards
@eddydn71
@eddydn71 3 года назад
Have you follow my tutorial step by step ?
@vasilemihai1465
@vasilemihai1465 3 года назад
@@eddydn71 yes, 99% sure :). or I miss something?
@subhamahir5599
@subhamahir5599 2 года назад
What is the latest version for Printooth?
@jsmx2673
@jsmx2673 3 года назад
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.mazenrashed.printooth.utilities.Printing.print(java.util.ArrayList)' on a null object reference help me this error please
@denisdenis1466
@denisdenis1466 5 лет назад
I saw that ur codes r same like the codes from github, do u memorize them in ur brain or u copy them from another monitor ?
@eddydn71
@eddydn71 5 лет назад
This is code from open source community , and i show it to all person who want to work with it :)
@denisdenis1466
@denisdenis1466 5 лет назад
@@eddydn71 so we must remember all the line codes in our mind? bcs when u r at job u cant copy paste the codes ...
@sachikanimantha9886
@sachikanimantha9886 5 лет назад
​@@denisdenis1466 I disagree with you. programming is not remembering all the codes in our mind. we must know the logic and the way it can be done.
@prithukathet193
@prithukathet193 4 года назад
it is not working in my device , it says minsdk > sdk and when i decrease the sdk version code is not working again
@eddydn71
@eddydn71 4 года назад
try target your min SDK to higher
@powergaming3292
@powergaming3292 3 года назад
can you print arabic letters in blutooth printer..plz reply...
@eddydn71
@eddydn71 3 года назад
@.@ I don't use this language so i can't test, can you try ?
@powergaming3292
@powergaming3292 3 года назад
@@eddydn71 i tried..not working
@adarshjain9828
@adarshjain9828 5 лет назад
This is awesome
@eddydn71
@eddydn71 5 лет назад
You're welcome my bro
@evankhan5068
@evankhan5068 4 года назад
Sir,thermal printer support other languages
@evankhan5068
@evankhan5068 4 года назад
Sir I wanted to print other languages just like Spanish.how can I print??
@eddydn71
@eddydn71 4 года назад
Try with this tutorial , i think it should work
@evankhan5068
@evankhan5068 4 года назад
Sir other languages not working
@pancaadnanandrian9471
@pancaadnanandrian9471 4 года назад
I watch this video 5 time but i still got error first unregisterRaicever second arraylist Paintertables null pointer object.pls help me i tried
@eddydn71
@eddydn71 4 года назад
Have you follow exactly all step ? Init Printooth in Application.java ?
@ottocheley7852
@ottocheley7852 5 лет назад
How do make the font smaller with bluetooth commands?
@eddydn71
@eddydn71 5 лет назад
You can see how to modify format of text in Github of this library
@ameliakaheja4854
@ameliakaheja4854 2 года назад
sir. help. i got this error Could not find io.paperdb:paperdb:2.6. do you know how to solve it?
@leandro-mendes
@leandro-mendes 16 дней назад
i m not, do you?
@d3zar
@d3zar 4 года назад
is it can work with normal (non termal printer) bluetooth printers .?
@eddydn71
@eddydn71 4 года назад
Try test with it my bro :D
@radi1572
@radi1572 3 года назад
hi sir, how to print data array json from url ?
@eddydn71
@eddydn71 3 года назад
Raw string or object array ? :D
@radi1572
@radi1572 3 года назад
@@eddydn71 object array sir, i have data array json connection with database, example url like this example.com/produk.php and i have a function sendprint to print Example funttion like this sendprint("welcome") output print welcome but i want insert data from database Like this sendprint(url json) i want output milk 1 7000 margarin 2 5000 please help me sir thanks
@fadelmuhammad3681
@fadelmuhammad3681 3 года назад
Sir i have error io.paperdb.PaperDbException: Paper.init is not called. How can I fix it
@eddydn71
@eddydn71 3 года назад
Please call Paper.init(this); before use it !
@leandro-mendes
@leandro-mendes 16 дней назад
@@eddydn71 Hi sir, can you pass some code to to understand where?
@MrEdersonlima
@MrEdersonlima 4 года назад
Hi, can I create a webview and print their content on a bluetooth printer with this code?
@eddydn71
@eddydn71 4 года назад
pointofandroid.blogspot.com/2018/03/printsave-pdf-from-webview.html You can convert PDF to WebView and print it :)
@Mjt4455
@Mjt4455 4 года назад
EDMT Dev Are you available for custom project ?
@balkacer
@balkacer 5 лет назад
Hola, saludos desde República Dominicana, tengo una Milestone MHT-L5801 para imprimir tickets y necesito imprimir Códigos QR, he seguido al pie de la letra el tutorial y no me funciona... he mirado en el logcat y me sale este error: "Activity com.mazenrashed.printooth.ui.ScanningActivity has leaked IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@b6fb53b that was originally registered here. Are you missing a call to unregisterReceiver()?" por favor necesito me ayudes a resolver este error. Espero tu respuesta y Gracias por el tutorial!!!
@eddydn71
@eddydn71 5 лет назад
Please use English , my dear
@balkacer
@balkacer 5 лет назад
@@eddydn71 Hello, greetings from the Dominican Republic, I have a Milestone MHT-L5801 to print tickets and I need to print QR Codes, I have followed the tutorial to the letter and it does not work ... I have looked in the logcat and I get this error: " Activity com.mazenrashed.printooth.ui.ScanningActivity has leaked IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@b6fb53b that was originally registered here. Are you missing a call to unregisterReceiver ()? " Please, I need you to help me solve this error. I await your response and Thanks for the tutorial !!!
@luckyluke2078
@luckyluke2078 Год назад
How implement to print barcode
@hafiedzkhadafi8198
@hafiedzkhadafi8198 4 года назад
How to make scan and print in different activity?
@eddydn71
@eddydn71 4 года назад
You just scan or do anything to get content to print , and pass it to activity print like this tutorial
@Kwauhmazatl
@Kwauhmazatl 4 года назад
Hi, I got this new error: android.app.IntentReceiverLeaked: Activity com.mazenrashed.printooth.ui.ScanningActivity has leaked IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@41bde06 that was originally registered here. Are you missing a call to unregisterReceiver()?
@eddydn71
@eddydn71 4 года назад
=>Are you missing a call to unregisterReceiver()? Try call this function in onStop method :D
@pancaadnanandrian9471
@pancaadnanandrian9471 4 года назад
@@eddydn71 in unregisterRaicever (there is a broadcast riciver) what should I put there ??
@Kwauhmazatl
@Kwauhmazatl 4 года назад
@@eddydn71 in the MainActivity? how? I dont understand
@eddydn71
@eddydn71 4 года назад
@@Kwauhmazatl Yes, try put in onStop
@Kwauhmazatl
@Kwauhmazatl 4 года назад
​@@eddydn71 sorry dont work can you share only this part of the code?
@razanabughazaleh8342
@razanabughazaleh8342 5 лет назад
Hello sir... I followed your tutorial but when test it, The image printed, but the text not... Any idea??
@eddydn71
@eddydn71 5 лет назад
Try check again my dear :) I can't print both Image and Text in my tutorial :D
@piyushshukla7124
@piyushshukla7124 4 года назад
Sir I want to Print and save invoice as pdf using bluetooth printer . Please help how to save as pdf
@eddydn71
@eddydn71 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gpH4Zr1ffnU.html Here you are
@piyushshukla7124
@piyushshukla7124 4 года назад
@@eddydn71 Sir I want pdf print for 80mm printer not A4 size
@eddydn71
@eddydn71 4 года назад
@@piyushshukla7124 :-? so it hard :( iText not support this size
@piyushshukla7124
@piyushshukla7124 4 года назад
@@eddydn71 So please let me know how to do this.
@eddydn71
@eddydn71 4 года назад
@@piyushshukla7124 Dear, try to with: stackoverflow.com/questions/31884342/generate-and-print-a-pdf-with-specific-size-in-android
@sadibouba151
@sadibouba151 5 лет назад
Hello sir...I followed your tutorial but i got an error on printint text...Attempt to invoke virtual method 'void com.mazenrashed.printooth.utilities.Printing.print(java.util.ArrayList)' on a null object reference.....Any idea???
@eddydn71
@eddydn71 5 лет назад
Please watch my tutorial step by step , i think your Printing object is null :)
@sachikanimantha9886
@sachikanimantha9886 5 лет назад
@@eddydn71 I also got this error. My code is also same like with your code @EDMT
@eddydn71
@eddydn71 5 лет назад
@@sachikanimantha9886 I mean your Printing object is null , you are not init it in Application.java :) Please watch my tutorial STEP BY STEP !
@juanpabloflores6338
@juanpabloflores6338 5 лет назад
I also get the same error, Could you solve it?
@jawadnas3526
@jawadnas3526 4 года назад
@@juanpabloflores6338 mee too
@mcaves___1441
@mcaves___1441 3 года назад
hello, on initView() function printing.setPrintingCallback(this) .. here this is not recognized.. it says Required PrintingCallback, Provided MainActivity... please help me to fix this.. thanks :)
@eddydn71
@eddydn71 3 года назад
Please watch my tutorial step by step , my dear
@jantofox4451
@jantofox4451 3 года назад
please help me, do this on xamarin android to
@eddydn71
@eddydn71 3 года назад
I will try my bro
@etelot
@etelot 2 года назад
This library is giving problems for Android 12. Fix it
@kindi933
@kindi933 4 года назад
help java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ber.printsample/com.mazenrashed.printooth.ui.ScanningActivity}: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class androidx.swiperefreshlayout.widget.SwipeRefreshLayout
@eddydn71
@eddydn71 4 года назад
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" Try implement it ! Or submit bug error with author Printooth
@kindi933
@kindi933 4 года назад
@@eddydn71 hello new error IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@76b9478 that was originally registered here. Are you missing a call to unregisterReceiver()?
@eddydn71
@eddydn71 4 года назад
override onStop in your Activity and add code unregisterReceiver my bro
@quangquang4588
@quangquang4588 Год назад
your project not working
@dwarow2508
@dwarow2508 2 года назад
I can't use Printooth. It does not import the class
@ZHANSKY
@ZHANSKY 2 года назад
i have the same problem. did you get the solution?
@hadeelsalih1639
@hadeelsalih1639 2 года назад
What about usb printer?
@mohsenalahmad2722
@mohsenalahmad2722 4 года назад
ERROR: Failed to resolve: com.github.mazenrashed:Printooth:1.2.1 i can not found this library . can i found here any help ?
@eddydn71
@eddydn71 4 года назад
Please follow my tutorial STEP BY STEP ! You lacking step add " maven { url 'jitpack.io' }" to your build.gradle (project) file
@mohsenalahmad2722
@mohsenalahmad2722 4 года назад
@@eddydn71 is it work for any bluetooth printer ? we do not have to add printer sdk ?
@eddydn71
@eddydn71 4 года назад
@@mohsenalahmad2722 Yes my bro !
@ozanaltok4647
@ozanaltok4647 3 года назад
Printing class does not exist in package . Can you fix this please
@eddydn71
@eddydn71 3 года назад
Hi, please follow my tutorial step by step :D
@magenzz
@magenzz 5 лет назад
The App unable to run because something wrong with binary xml:16 SwipeRefreshLayout. Can you please help me?
@eddydn71
@eddydn71 5 лет назад
Check your SwipeRefreshLayout , make sure it come from right package. Maybe you use AndroidX ?
@magenzz
@magenzz 5 лет назад
@@eddydn71 no, i idont use SwipeRefreshLayout. But I use AndroidX. What the difference?
@eddydn71
@eddydn71 5 лет назад
@@magenzz Your log error say about SwipeRefreshLayout If you use androidx , all package name must be change to androidx , my dear
@magenzz
@magenzz 5 лет назад
@@eddydn71 ok thanks, its work. print from list from recyclerview , it is possible? how?
@eddydn71
@eddydn71 5 лет назад
@@magenzz Just format data in list to Text list data :D
@Imperfecton
@Imperfecton 3 года назад
Hi, can you help me with printing vietnamese charecter with bluetooth printer? In the video, Bluetooth Print just can print window-1252 characters but it's missing some characters such as: ấ ề ừ
@eddydn71
@eddydn71 3 года назад
:( It depends on Printer, i think so
@ducanhnguyen4378
@ducanhnguyen4378 3 года назад
cho mình hỏi, bạn đã làm theo và thành công chưa, vì mình k có máy in để thử
@Imperfecton
@Imperfecton 3 года назад
@@ducanhnguyen4378 mình dùng cách in xml để in tiếng việt vì video này vẫn hạn chế 1 số chữ
@ducanhnguyen4378
@ducanhnguyen4378 3 года назад
@@Imperfecton mình muốn in ảnh, bitmap thì k biết có nên dùng cách này k, và bạn dùng cách này có kết nối đc với máy in không, vì mình k có máy in để thử
@Imperfecton
@Imperfecton 3 года назад
@@ducanhnguyen4378 đc bạn nhé
@FelexAndVirginia
@FelexAndVirginia 5 лет назад
U remind of an app we used to import farmers details who were selling milk to a company then we would print the kg of milk they sold .......i have source code if intrested i can share with you ....how much can you charge for app like my resturant in $
@eddydn71
@eddydn71 5 лет назад
Contact with me by email : eddydn@gmail.com
@tanimahmed2938
@tanimahmed2938 3 года назад
how to connect through IP of device?
@eddydn71
@eddydn71 3 года назад
Please, this is 'Bluetooth printer' :) You can watch my Wifi Printer tutorial
@nikeshsangale1765
@nikeshsangale1765 5 лет назад
please provide code of this tutorial and how to print bill in android please make video on this concept
@eddydn71
@eddydn71 5 лет назад
All source code available in my tutorial , please watch and get it my dear !
@HidungPesek
@HidungPesek 4 года назад
bro... is this tutorial and code still work for now? 🤔
@eddydn71
@eddydn71 4 года назад
work fine ! Why you ask that :D
@HidungPesek
@HidungPesek 4 года назад
@@eddydn71 hmm...i will make app like this... soo.. its make me little bit aware i need a buy that printer and spent money for not really sure working fine.. hmmm... can u help me if i got trouble or something not working fine
@Kwauhmazatl
@Kwauhmazatl 4 года назад
Hi, I got this error: ERROR: Failed to resolve: com.github.mazenrashed:Printooth:1.2.1 Show in Project Structure dialog Affected Modules: app
@eddydn71
@eddydn71 4 года назад
Add the JitPack repository to your build file allprojects { repositories { ... maven { url 'jitpack.io' } } } Add dependency dependencies { implementation 'com.github.mazenrashed:Printooth:1.2.1' }
@Kwauhmazatl
@Kwauhmazatl 4 года назад
@@eddydn71 hehe thank you
@sulaimanhaiderseddique3590
@sulaimanhaiderseddique3590 Год назад
What are you doing actually bro! Your video heading does not say "This video is not for novice developer". Plz try to attach some related technical speech about job you are doing.
@abdelkaderchihabeddinebena2227
Thanks bro the best as ever
@eddydn71
@eddydn71 5 лет назад
You're welcome my bro
@cagdaskaya3036
@cagdaskaya3036 5 лет назад
Hi Why import com.mazenrashed.printooth.utilities.Printing; this My MainActivity class crashed
@eddydn71
@eddydn71 5 лет назад
Show me your log cat when your app is crash :D
@cagdaskaya3036
@cagdaskaya3036 5 лет назад
@@eddydn71 Bro app is not crash but Printing cannot import video 3:50 you write Printing and import but my project cannot import if I write this import com.mazenrashed.printooth.utilities.Printing; Main activity red line Printing
@eddydn71
@eddydn71 5 лет назад
@@cagdaskaya3036 Have you install this library ?
@cagdaskaya3036
@cagdaskaya3036 5 лет назад
@@eddydn71 yes I install. I can import PrintCallBack vs..
@eddydn71
@eddydn71 4 года назад
@@cagdaskaya3036 Try watch my tutorial step by step :) my bro
@ahmedtawfiq5270
@ahmedtawfiq5270 4 года назад
Hello Thanks sir how Can i Print PDf from this Library ?
@eddydn71
@eddydn71 4 года назад
I also have tutorial Print PDF , please search :D
@ahmedtawfiq4723
@ahmedtawfiq4723 4 года назад
Thanks man i found it 👍👌
@alisampson6639
@alisampson6639 4 года назад
@@eddydn71 Does that tutorial support bluetooth printers?
@madhuranvision6572
@madhuranvision6572 2 года назад
Hi do any one know hot print arabic/hindi with this method
@brianphury8509
@brianphury8509 3 месяца назад
Unfortunately didn't work for me
@mateusanjos4567
@mateusanjos4567 4 года назад
Hi. Source code ? I am from another country and my English is not advanced enough to understand everything.
@eddydn71
@eddydn71 4 года назад
All source code in my tutorial my bro, please watch and get it :D
@adnanmhanna2734
@adnanmhanna2734 4 года назад
Hello it is not working with arabic can you please tell me what I do to make it print
@ahmedalbasha8103
@ahmedalbasha8103 4 года назад
I have the same problem... Did you fix it?
@jawadnas3526
@jawadnas3526 4 года назад
i thing the solution here .setCharacterCode(DefaultPrinter.Companion.getCHARCODE_ARABIC_CP720())
@eddydn71
@eddydn71 3 года назад
You're welcome
@lifeOfCharlesMaina
@lifeOfCharlesMaina 2 года назад
this library is not working
@abdalrahmangharaibeh1171
@abdalrahmangharaibeh1171 5 лет назад
how to set font family??
@eddydn71
@eddydn71 5 лет назад
You can do that on API level 29+
@abdalrahmangharaibeh1171
@abdalrahmangharaibeh1171 5 лет назад
I am not able to print out Arabic text it print out black box that why i asked for changing font family Thank you
@eddydn71
@eddydn71 5 лет назад
@@abdalrahmangharaibeh1171 You're welcome , my dear
@kaneborreo7003
@kaneborreo7003 4 года назад
Doesn't work on higher version
@eddydn71
@eddydn71 4 года назад
What problem with it my dear :D
@kaneborreo7003
@kaneborreo7003 4 года назад
@@eddydn71 the printooth you implement in gradle
@kaneborreo7003
@kaneborreo7003 4 года назад
@@eddydn71 Please Please Please?
@ruseltayong1094
@ruseltayong1094 4 года назад
Good day sir! I got this error ERROR: Failed to resolve: com.squareup.picasso.picasso:2.71828:
@eddydn71
@eddydn71 4 года назад
com.squareup.picasso:picasso:2.71828 => This is right syntax :D
@zameer-haider
@zameer-haider 4 года назад
sir please print Image 58mm
@zameer-haider
@zameer-haider 4 года назад
how to print complete ticket (image)
@eddydn71
@eddydn71 4 года назад
I will try to make tutorial , my dear
@zameer-haider
@zameer-haider 4 года назад
@@eddydn71 thanks for reply,
@eddydn71
@eddydn71 4 года назад
You're welcome my bro
@zameer-haider
@zameer-haider 4 года назад
Em still waiting bro ! 😢
@luckyluke2078
@luckyluke2078 Год назад
How to print badcode
@yasark6347
@yasark6347 5 лет назад
My layout be like parent is relative layout in that recycler view and floating action button aligned in parent bottom and end =true
@eddydn71
@eddydn71 5 лет назад
And what problem with you , my dear ?
@yasark6347
@yasark6347 5 лет назад
@@eddydn71 sir my problem is I created a categories 👇👇 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fItHmbRQUW8.html By above link of your tutorial All is working fine except the new category is created only on firebase server and storage folder also created in server but the recyclerview of app is not updated no error is shown Before all of this u first loaded the items from firebase that is also working.thanks sir in advance
@zameer-haider
@zameer-haider 4 года назад
Please create video. This process. Pick image to gallery for example ticket. And print it! Please please.
@supartodondit6396
@supartodondit6396 4 года назад
Activity com.mazenrashed.printooth.ui.ScanningActivity has leaked IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@d7eceaf that was originally registered here. Are you missing a call to unregisterReceiver()? How resolve this
@eddydn71
@eddydn71 4 года назад
stackoverflow.com/questions/9078390/intentrecieverleakedexception-are-you-missing-a-call-to-unregisterreceiver I hope it can help you
@kindi933
@kindi933 4 года назад
@@eddydn71 hello new error has leaked IntentReceiver com.mazenrashed.printooth.utilities Are you missing a call to unregisterReceiver()?
@eddydn71
@eddydn71 4 года назад
@@kindi933 Check your code and make sure you already add code unregisterReceiver for Bluetooth service. Watch my t utorial STEP BY STEP
@mohamedabuasi1142
@mohamedabuasi1142 5 лет назад
Please want to get the source code
@eddydn71
@eddydn71 5 лет назад
All source code available in my tutorial , please watch and get it my dear !
@WMPD39
@WMPD39 4 года назад
How to print arabic ..?
@eddydn71
@eddydn71 4 года назад
I am not sure this library support Arabic, i will check
@dineshasija4535
@dineshasija4535 2 года назад
Can you share your code please
@jcayournewstyle182
@jcayournewstyle182 3 года назад
I get an error, I don't understand why all your videos always get an error
@eddydn71
@eddydn71 3 года назад
@.@ What error ? You can see in my video, i can show step by step from start to end :D
Далее
How is this Website so fast!?
13:39
Просмотров 477 тыс.
Flutter Thermal Printer Bluetooth Example
26:01
Просмотров 41 тыс.
Fastest Way to Become Android Developer in 2024 🔥
13:30
How to Make an Android App for Beginners
19:18
Просмотров 6 млн
Digging Into Android System Services
31:58
Просмотров 33 тыс.
How I build Apps that PRINT ($30k/month Micro SAAS)
22:51
Android Development Tutorial - Print PDF contains Image
29:13