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.
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 !
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.
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?
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.
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);
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 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?
@@eddydn71 can you tell me whats the differecne between printing.print(printables); Printooth.INSTANCE.printer().print(printables); this two print functions?
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 .
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.
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 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)
@@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)
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?
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,
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
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?
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
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
@@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
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 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 !!!
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()?
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???
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 :)
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 hello new error IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@76b9478 that was originally registered here. Are you missing a call to unregisterReceiver()?
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: ấ ề ừ
@@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ử
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 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
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.
@@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 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
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