I couldn't print cryllic letter on thermal printer.
I'm using DantSu ESC/POS ANDROID library now, but I can't give a utf-8 charset in it, maybe someone used it before. please help me solve this problem or share a better library
GitHub link of library - https://github.com/DantSu/ESCPOS-ThermalPrinter-Android
Related
I have a react native application. In this application, one of its functionalities is printing. Most of the prints are made by using a bluetooth thermal printer. The print content is receipts.
Currently I use this lib -> https://www.npmjs.com/package/react-native-print.
What is the issue then? So...I would like to print directly, without opening the android printing modal. I other words, a silent print.
I have done a lot of research and found nothing.
Has anyone here some clue of how I can achieve that?
Thanks in advance .
Introduction
I am developing a script in Python 3.7 using Appium. It will automate some task on a Real Android smartphone. My script need to type some text in textfield.
I don't want to use send_keys method or ActionChains.
I would prefer to type the text, character by character, using the keyboard of the smartphone.
Problem
I investigate and read various docs:
press-keycode
https://appium.readthedocs.io/en/latest/en/commands/device/keys/press-keycode/
which brings me to Keyevent
https://developer.android.com/reference/android/view/KeyEvent.html
Which brings me to KeyCharacterMap
https://developer.android.com/reference/android/view/KeyCharacterMap.html
To be honest with you, after I read it all, it is super difficult for me to undestand all that.
So I made some experimentations by trying different lines of code to see what happens:
driver.press_keycode(0)
driver.press_keycode(1)
driver.press_keycode(2)
etc...
It seems than nothing happen.
Is there anyone who knows a good tutorial or article which can explain me how to type a text in a textfield of an Android smartphone Application using the keyboard instead of send_keys method and ActionChains?
Could you help me please to find the way?
I've created a few vector assets using Vectornator. If I import those assets into Android Studio, I receive a parsing error - as shown in the attached picture.
Why do I get this parsing error and how can I create vector assets that do not create this error?
I use FIGMA/SKETCH to create SVG's.
It was a bug, so please check your android version and update to newer one.
also check out these possible error,
Internal error parsing svg file in android studio
I've solved exporting the Vectornator project to PDF and then converting the PDF to SVG (for example with this online tool)
I also had this problem using Android App and Vectornator (Being too cheap to pay for adobe illustrator and all the cloud subscription stuff that goes with it). Haven't fully solved the problem yet, but the problem lies with Vectornator's JSON code with opacity. If you remove all opacity it will work better. Another thing is that it really appears to save a bitmap and wrap it in SVG code instead of being a clean SVG code, and a lot of online resources do that. If you open the code of the image you will see in the javascript that the code isn't quite right, which is probably why it is free. Moreover, Android has not gone out of its way to make itself compatible with a program like Vectornator, but they do go out of their way to "play nice" with adobe programming. I have come up with these solutions:
Pay for and download a program like Affinity Designer for $9.99 on Ipad (1 time fee) which has a cleaner formatting capability and import it in there then turn to SVG (and fix the issues in the design as they pop up.
Use Vectornator only for art, and not for programming, and then buckle down and use Adobe Illustrator because let's face it, they have a lot of money behind them to make sure that their products "play nice with others" (Meaning they actually pay Android to provide programming to support their code).
Import a ton of code from Maven Libraries for SVG support and essentially build an in program svg to png converter that replicates what Android App does when it imports a vector, but is under your control. If you do this you will upload all your svg files directly to this mini program instead of using the Android App's Import Image and Vector directory under File New.
I was trying everything but using Adobe Illustrator, but it is a huge pain and a lot of headache. Adobe Illustrator still has minor issues, but not the huge glaring problems of Vectornator.
Installed Android Studio maybe week ago. All was great.
Then yesterday have tried to open it. Something strange happened: all english letters are shifted right in alphabet (abcd -> cdef).
Loaded IDE start
It reminds me of encoding problems (I use ukrainian windows, but another apps (Latin / Cyrillic) are working without problems).
Have checked Language and Regional settings, but everything is fine with it (as I think). Tried to change IDE encoding to UTF-8 too - nothing changed.
Encoding error detector site(online-decoder) gives me nothing... Searching on abcd to cdef and other encoding problems too... Have not found anything similar, but maybe i have tried to search in wrong direction. At least now i have "encrypted" IDE, and can spend some time to get familiar with this "language" :D
How to solve this?
System:
- Win7 64 bit.
- Android Studio 2.3.1
I think that it can be because i have changed system font and maybe something gone wrong. Will try to change it back to original.
EDIT: After changing system font back to original All is OK. But anyway that is strange that most of the apps supports ISOCPEUR, and Android Studio doesn't.
I have recently got a portable printer MZ 220. However i am not able to pair with it, i have looked everywhere in the manual to try get the pin and i have tried 1234 and 0000..??
you have to set up an autorisation code on the printer.
standard the printer dont have a pin code.
you can't pair with android becouse android requires a pin.
use Lable vista to set up the printer.
also look in the document's of zebra they have described it somwere.