How can make the path with traffic area red color and light traffic with yellow color, how can handle it?enter image description here
That is in the Input Method Framework.
InputContext ic = InputContext.getInstance();
Locale locale = ic.getLocale();
Now one has the current locale like en_US.
System.out.println(locale.getLanguage()); // ar/en
One may switch the keyboard locale with:
if (!ic.selectInputMethod(locale)) {
// Failed to switch...
}