question

gerardo avatar image
gerardo asked ondrej commented

Disabling USB keyboard/scanner by default

If you attach a USB laser scanner, which is faster to operate than the built in scanner, you have to disable it as a USB keyboard in order to be able to use the soft keyboard. Can your build of Android just make this a default, so that merchants don't have to go digging for this setting every time they either attach the scanner or the device reboots?

Here's some related links: http://stackoverflow.com/questions/92... http://stackoverflow.com/questions/81...

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Brian Murray avatar image
Brian Murray Deactivated answered ondrej commented

To elaborate, newer (yet to be released in most cases) Clover ROMs will prompt the user immediately when an HID USB device is connected. The prompt asks the user if this is a USB keyboard, or not. If the user answers no, it will automatically toggle that values that's buried in settings to not hide the on-screen keyboard when this device is connected. It will remember this across reboots.

If it's a known, supported USB barcode scanner, no prompt is shown. In this case we interface with the scanner at a lower level and it's not treated as a USB HID keyboard (this behavior hasn't changed).

3 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Brian Murray avatar image Brian Murray commented ·

Fixed in latest ROM version

0 Likes 0 ·
ondrej avatar image ondrej commented ·

Hello, will this ROM be available only on new devices? How can we make an 'if' switch in the code to show/not show the 'Input Method' dialog? Is/will be an updated ROM available also for the existing Devkit devices?

Thank you @Brian

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

The behavior I described is not customizable. The merchant will always see the dialog unless they choose "don't show again for this device", from the dialog. This ROM is rolling out now and should be available to everyone soon on Mini and Mobile. Station will be a lot longer.

0 Likes 0 ·
Brian Murray avatar image
Brian Murray Deactivated answered

Thanks for the suggestion. We are considering making this change.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community