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
This will change the input method to Google Voice Typing whenever your phone is laying on a 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
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.
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