Android Development Tutorial - Bluetooth Print

  Рет қаралды 51,910

EDMT Dev

EDMT Dev

Күн бұрын

Пікірлер: 290
@charliewason7446
@charliewason7446 Жыл бұрын
The printer was a bit complicated to hook up kzbin.infoUgkxciSwynMJ7PnUvvx11rewiu-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
@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
@ASAD-zk8hp
@ASAD-zk8hp 5 жыл бұрын
Bro god bless you visiting ur channel after long. feeling good
@eddydn71
@eddydn71 5 жыл бұрын
You're welcome my bro
@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
@ZHANSKY
@ZHANSKY 3 жыл бұрын
is there a print tutorial like this but with user input and can display the time?
@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.
@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.
@brdev7840
@brdev7840 4 жыл бұрын
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 4 жыл бұрын
:-? I think we need change paper size
@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
@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.
@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
@samurbandy
@samurbandy Жыл бұрын
I'm struggling looking for how to cut paper using Printooth. I'm about to give up...
@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 5 жыл бұрын
No I am using hp sprocket printer..not working with that
@abdulkarimalbaik3873
@abdulkarimalbaik3873 5 жыл бұрын
Amazing 💛💛💛
@eddydn71
@eddydn71 5 жыл бұрын
You're welcome my bro
@FranciscoJavierRamirezAyala
@FranciscoJavierRamirezAyala Жыл бұрын
Is there any way to know if the printer is out of paper with this library?
@trunghieu22499
@trunghieu22499 4 жыл бұрын
please help me, can this way print the invoice or just print text ?
@eddydn71
@eddydn71 4 жыл бұрын
@.@ You already simplest example, so you can make text to invoice you want !
@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
@alissonjohn
@alissonjohn 5 жыл бұрын
congratulaitions !!!!!!!!!! veryyyyyyyyy thnks
@eddydn71
@eddydn71 5 жыл бұрын
You're welcome 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
@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 5 жыл бұрын
Please create video. This process. Pick image to gallery for example ticket image. And print it! Please please.
@powergaming3292
@powergaming3292 4 жыл бұрын
can you print arabic letters in blutooth printer..plz reply...
@eddydn71
@eddydn71 4 жыл бұрын
@.@ I don't use this language so i can't test, can you try ?
@powergaming3292
@powergaming3292 4 жыл бұрын
@@eddydn71 i tried..not working
@subhamahir5599
@subhamahir5599 2 жыл бұрын
What is the latest version for Printooth?
@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!
@mohammedmosalam9872
@mohammedmosalam9872 4 жыл бұрын
I have this problem : io.paperdb.PaperDbException: Paper.init is not called can help me?
@eddydn71
@eddydn71 4 жыл бұрын
Please add Paper.init(this); in onCreate method, or above code of Paper
@leandro-mendes
@leandro-mendes 3 ай бұрын
​@@eddydn71 Hi sir, can you pass some code to to understand where?
@kennethmallari127
@kennethmallari127 2 жыл бұрын
Learning to code using jetpack compose, how to properly add its repository and dependency?
@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 ✌️
@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
@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
@evankhan5068
@evankhan5068 5 жыл бұрын
Sir,thermal printer support other languages
@evankhan5068
@evankhan5068 5 жыл бұрын
Sir I wanted to print other languages just like Spanish.how can I print??
@eddydn71
@eddydn71 5 жыл бұрын
Try with this tutorial , i think it should work
@evankhan5068
@evankhan5068 5 жыл бұрын
Sir other languages not working
@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...
@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)
@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
@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 :)
@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 3 ай бұрын
i m not, do you?
@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 ?
@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
@fadelmuhammad3681
@fadelmuhammad3681 4 жыл бұрын
Sir i have error io.paperdb.PaperDbException: Paper.init is not called. How can I fix it
@eddydn71
@eddydn71 4 жыл бұрын
Please call Paper.init(this); before use it !
@leandro-mendes
@leandro-mendes 3 ай бұрын
@@eddydn71 Hi sir, can you pass some code to to understand where?
@prithukathet193
@prithukathet193 5 жыл бұрын
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 5 жыл бұрын
try target your min SDK to higher
@franciscorivera4351
@franciscorivera4351 4 жыл бұрын
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 4 жыл бұрын
Maybe it can't connect to your drive, try with other device
@adarshjain9828
@adarshjain9828 5 жыл бұрын
This is awesome
@eddydn71
@eddydn71 5 жыл бұрын
You're welcome my bro
@hafiedzkhadafi8198
@hafiedzkhadafi8198 5 жыл бұрын
How to make scan and print in different activity?
@eddydn71
@eddydn71 5 жыл бұрын
You just scan or do anything to get content to print , and pass it to activity print like this tutorial
@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.
@ziauddinahmed2684
@ziauddinahmed2684 4 жыл бұрын
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 4 жыл бұрын
Try play with code print my bro :D
@jantofox4451
@jantofox4451 4 жыл бұрын
please help me, do this on xamarin android to
@eddydn71
@eddydn71 4 жыл бұрын
I will try my bro
@rubanjap
@rubanjap 3 жыл бұрын
Hi, Can we print QR code using the android app inThermal Printer? Plz reply me
@vasilemihai1465
@vasilemihai1465 4 жыл бұрын
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 4 жыл бұрын
Have you follow my tutorial step by step ?
@vasilemihai1465
@vasilemihai1465 3 жыл бұрын
@@eddydn71 yes, 99% sure :). or I miss something?
@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 ?
@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
@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
@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.
@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
@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?
@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
@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 жыл бұрын
kzbin.info/www/bejne/naGrZY2oZsuZpLc 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
@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?
@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
@luckyluke2078
@luckyluke2078 2 жыл бұрын
How implement to print barcode
@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
@RhanReeper
@RhanReeper 4 жыл бұрын
hi, i am getting error: Execution failed for task ':app:compileDebugJavaWithJavac'. how do i fix that?
@eddydn71
@eddydn71 4 жыл бұрын
Show me more about message, my bro :D
@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 !
@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
@dwarow2508
@dwarow2508 3 жыл бұрын
I can't use Printooth. It does not import the class
@ZHANSKY
@ZHANSKY 3 жыл бұрын
i have the same problem. did you get the solution?
@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
@tanimahmed2938
@tanimahmed2938 4 жыл бұрын
how to connect through IP of device?
@eddydn71
@eddydn71 4 жыл бұрын
Please, this is 'Bluetooth printer' :) You can watch my Wifi Printer tutorial
@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
@balkcer
@balkcer 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
@balkcer
@balkcer 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 !!!
@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 5 жыл бұрын
@@cagdaskaya3036 Try watch my tutorial step by step :) my bro
@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
@ahmedtawfiq5270
@ahmedtawfiq5270 5 жыл бұрын
Hello Thanks sir how Can i Print PDf from this Library ?
@eddydn71
@eddydn71 5 жыл бұрын
I also have tutorial Print PDF , please search :D
@ahmedtawfiq4723
@ahmedtawfiq4723 5 жыл бұрын
Thanks man i found it 👍👌
@alisampson6639
@alisampson6639 4 жыл бұрын
@@eddydn71 Does that tutorial support bluetooth printers?
@Imperfecton
@Imperfecton 4 жыл бұрын
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 4 жыл бұрын
:( 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é
@kaneborreo7003
@kaneborreo7003 5 жыл бұрын
Doesn't work on higher version
@eddydn71
@eddydn71 5 жыл бұрын
What problem with it my dear :D
@kaneborreo7003
@kaneborreo7003 5 жыл бұрын
@@eddydn71 the printooth you implement in gradle
@kaneborreo7003
@kaneborreo7003 5 жыл бұрын
@@eddydn71 Please Please Please?
@zameer-haider
@zameer-haider 5 жыл бұрын
how to print complete ticket (image)
@eddydn71
@eddydn71 5 жыл бұрын
I will try to make tutorial , my dear
@zameer-haider
@zameer-haider 5 жыл бұрын
@@eddydn71 thanks for reply,
@eddydn71
@eddydn71 5 жыл бұрын
You're welcome my bro
@zameer-haider
@zameer-haider 5 жыл бұрын
Em still waiting bro ! 😢
@mcaves___1441
@mcaves___1441 4 жыл бұрын
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 4 жыл бұрын
Please watch my tutorial step by step , my dear
@quangquang4588
@quangquang4588 Жыл бұрын
your project not working
@hadeelsalih1639
@hadeelsalih1639 2 жыл бұрын
What about usb printer?
@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
@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
@zameer-haider
@zameer-haider 5 жыл бұрын
sir please print Image 58mm
@abdelkaderchihabeddinebena2227
@abdelkaderchihabeddinebena2227 5 жыл бұрын
Thanks bro the best as ever
@eddydn71
@eddydn71 5 жыл бұрын
You're welcome my bro
@adnanmhanna2734
@adnanmhanna2734 5 жыл бұрын
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
@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 !
@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
@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
@georgeonil...
@georgeonil... 4 жыл бұрын
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 4 жыл бұрын
You're welcome, my bro :D
@luckyluke2078
@luckyluke2078 2 жыл бұрын
How to print badcode
@madhuranvision6572
@madhuranvision6572 2 жыл бұрын
Hi do any one know hot print arabic/hindi with this method
@etelot
@etelot 3 жыл бұрын
This library is giving problems for Android 12. Fix it
@Sajad-uz3id
@Sajad-uz3id 3 жыл бұрын
Code please
@eddydn71
@eddydn71 3 жыл бұрын
All source code available in my tutorial , please watch and get it my dear !
@d3zar
@d3zar 4 жыл бұрын
is it can work with normal (non termal printer) bluetooth printers .?
@eddydn71
@eddydn71 4 жыл бұрын
Try test with it my bro :D
@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 👇👇 kzbin.info/www/bejne/nHrXeaCYh7aIjZo 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 5 жыл бұрын
Please create video. This process. Pick image to gallery for example ticket. And print it! Please please.
@WMPD39
@WMPD39 4 жыл бұрын
How to print arabic ..?
@eddydn71
@eddydn71 4 жыл бұрын
I am not sure this library support Arabic, i will check
@ruseltayong1094
@ruseltayong1094 5 жыл бұрын
Good day sir! I got this error ERROR: Failed to resolve: com.squareup.picasso.picasso:2.71828:
@eddydn71
@eddydn71 5 жыл бұрын
com.squareup.picasso:picasso:2.71828 => This is right syntax :D
@dineshasija4535
@dineshasija4535 2 жыл бұрын
Can you share your code please
@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 !
@lifeOfCharlesMaina
@lifeOfCharlesMaina 3 жыл бұрын
this library is not working
@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.
@brianphury8509
@brianphury8509 6 ай бұрын
Unfortunately didn't work for me
@proskillscenter9589
@proskillscenter9589 3 жыл бұрын
source code plz
@alg8829
@alg8829 5 жыл бұрын
Topp
Bluetooth | Android Studio | Java
26:15
Atif Pervaiz
Рет қаралды 188 М.
QR & Barcode Scanner App Tutorial in Android Studio
13:07
Indently
Рет қаралды 134 М.
Kotlin Android Tutorial - Bluetooth Print
15:40
EDMT Dev
Рет қаралды 11 М.
This AI Robot Is Doing the Impossible - Unitree x ElizaWakesUp
9:30
Ultimate NotebookLM Guide (Google's AI Note-Taking App)
17:47
Tool Finder
Рет қаралды 6 М.
Best Ways to Use Gemini 2.0 (over ChatGPT & Perplexity)!
16:06
Grace Leung
Рет қаралды 20 М.
Android Development Tutorial - Read QR Code with ZXing
19:04
EDMT Dev
Рет қаралды 40 М.
Are you using a Hacked AI system?
27:06
David Bombal
Рет қаралды 110 М.