简体   繁体   English

如何禁用Motorola ET1条形码扫描器将输出粘贴到聚焦的Edittext?

[英]How to disable Motorola ET1 barcode scanner from pasting output to focused Edittext?

I'm trying to integrate Motorola ET1 bar-code scanner in my Application. 我正在尝试在我的应用程序中集成Motorola ET1 bar-code scanner I have created a DataWidge profile to receive the bar-code scanner's output via intent in my application and processing the same. 我创建了一个DataWidge profile ,通过我的应用程序中的意图接收bar-code scanner's输出并处理相同的内容。 But my problem is if any EditText is in focused state while scanning, then the inbuilt bar-code scanner is also pasting the output to that view. 但我的问题是,如果扫描时任何EditText处于聚焦状态,那么inbuilt bar-code scanner也会将输出粘贴到该视图。

Output via Intent is enough for me, I don't want bar-code scanner to past the output in my views. 通过Intent输出对我来说已经足够了,我不希望条形码扫描器在我的视图中超过输出。

I didn't find any option in DataWidge profile to do this. 我没有在DataWidge profile找到任何选项来执行此操作。

Can someone tell me the way to block this.? 有人能告诉我阻止它的方法吗?

There are two way to get the output one is Keystroke o/p and another is Intent o/p that is in DataWidge Profile. 获取输出的方法有两种,一种是Keystroke o / p,另一种是DataWidge Profile中的Intent o / p。 So, just disable keystroke o/p it will work. 所以,只需禁用击键o / p即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM