Search code examples
angularjscordovaandroid-sdk-toolsngcordovamulti-device-hybrid-apps

Need to open alphanumeric google keyboard in Hybrid android application


I need to open alphanumeric google keyboard in Hybrid android application. That particular keyboard is generally come for password field for any android devices. I need a solution for kiosk application. Need to active this alphanumeric keyboard on my kiosk application .

Few details related query.

  • Using android-19 Kitkat
  • This the kiosk application specific devices not general android device.
  • Hybrid application using Apache Corodva.
  • Need to activate this particular keyboard for all Address fields(text-field).

Solution

  • 😎

    1. Do you have that keyboard installed and selected on device ? if yes, you can open it by one of these ways programmatically: Forcing the Soft Keyboard open
    2. If you want to select an installed keyboard programatically and your app has system privileges, use this solution to switch keyboards ( activation ), Take a look on : https://stackoverflow.com/a/33999658/2267723
    3. Since your using Apache Corodva, you could ship a virtual keyboard (as html5 ) to app. Take a look on https://mottie.github.io/Keyboard/ to app and when user enters input, just call back your app with href with mimetype which is recognized by app.

    Other solutions:

    1. Create on-screen keyboard ( Im not talking about custom keyboard ) its just layout as grid of buttons represents inputs.

    2. Attach a physical Bt/USB keyboard.

    3. Use a QR code . that would lead user to web where user can fill that form .. That would be free machine soon 🙂