I have Two Radio button(Hindi And English). when i click hindi radio then my keyboard language change to Hindi and focus on edittext, same as english. how is possible?
I have use following code
super.onCreate(savedInstanceState);
Resources res = RegistartionActivity.this.getResources();
// Change locale settings in the app.
DisplayMetrics dm = res.getDisplayMetrics();
android.content.res.Configuration conf = res.getConfiguration();
conf.locale = new Locale("ch".toLowerCase());
res.updateConfiguration(conf, dm);
setContentView(R.layout.activity_registartion);
help me..... thanks in advance