Search code examples
androidwebviewbarcode-scanner

Have a barcode scanner called instead of the keyboard in a webview


Is it possible to have the barcode scanner (zxing for example) called instead of the keyboard in a webview? So, just to be clear, when I tap in a text box inside my webview I'd like to override the keyboard call and have the barcode scanner open instead as an input to the text field. Is this feasible?


Solution

  • Yes its possible , i implemented this softkeyboard which does the job. 'Long press' shift key and you can scan a code which adds to the text field which has focus.

    http://www.androidbroadcast.com/en/softkeyboard/index.html