Change input keyboard depending on situation

Set voice typing keyboard if the phone is on the table or normal keyboard if you pick up the phone

  1. joaomgcd
    This example shows how you can dynamically set your keyboard on Android.

    You can make it change depending on the app you're in, on the time of day or like in this example depending on if you're holding the phone or not.

    This is how it'll look like:


    As you can see the keyboard will change instantaneously even if it's open.

    STEP 1 - SET VOICE KEYBOARD IF PHONE IS ON TABLE


    • Add a new profile with the Orientation state condition
    • Make sure that Face Up is selected
    • In the entry task add a flash action with the text Setting voice keyboard
    • Add an AutoTools Secure Settings action
    • Set the Input Method to Google Voice Typing
    • Go back to the task
    (i) This will change the input method to Google Voice Typing whenever your phone is laying on a table.


    STEP 2 - SET NORMAL KEYBOARD IF YOU PICK UP THE PHONE


    • Add an exit task to the profile
    • Add a Flash action with the text Setting normal keyboard
    • Add an AutoTools Secure Settings action
    • Set the Input Method to whatever keyboard you normally use
    • Back out of Tasker to save


    STEP 3 - TEST


    If you now receive a hangouts message for example and touch the text box and your phone is on a table, you'll see that the voice keyboard will be used.

    If you pick up the phone, the keyboard will be instantly changed to the normal keyboard.

    You can now customize it however you want. For example, you could make this only happen if you're in Hangouts by adding an Application condition to the profile with the Hangouts app selected.

Recent Reviews

  1. Lee young su
    Lee young su
    5/5,
    WOW! VERY GOOD ! Thank you.
  2. ycgxbzf
    ycgxbzf
    5/5,
    非常好,谢谢
  3. x26303
    x26303
    5/5,
    好用,谢谢
  4. Danny W Moses
    Danny W Moses
    5/5,
    Just tried this out. Works great.
  5. revilo
    revilo
    5/5,
    Great idea man!
  6. Danny McGrath
    Danny McGrath
    5/5,
    Changing / adding to the trigger to make this work in the car is awesome. This is a brilliant example. Thanks.
  7. snej81
    snej81
    4/5,
    I give this a 5 star first but because of the sensitivity of the orientation sensor it doesn't work flawless, if I hold the phone tilted the phone changes to ``face up´´ even if its only 80% flat. It would be great if you could use the heartbeat sensor or camera as well (to sense if the phone is laying on a table or if its dark?)