How to change language and input settings programmatically?

512 Views Asked by At

Problem

I don't know how I can change the "Language and input" settings manually.

What I know

For example I know how to change the "Display" settings programmatically:

Settings.System.putInt(cResolver, Settings.System.SCREEN_BRIGHTNESS, 255);
Settings.System.putInt(cResolver, Settings.System.SCREEN_OFF_TIMEOUT, 600000);

What I need to know

  • I need to know how the Language (first screenshot) can be changed programmatically. => Not for my app. For the whole device.
  • I need to know how "Smart typing" (second screenshot) can be changed programmatically.

Question

Is it even possible to change those Language & Input Settings by code?

Screenshots

Language Settings

Keyboard Settings

0

There are 0 best solutions below