You cannot set the Input Method programmatically, you have to navigate to the settings so the users can change the settings. Android secured this option so no bloatware takes over the device.
Same story as enabling GPS programmatically, it is not possible!
Also se this question.