Possible Duplicate:
Change language programatically in Android
I am creating Application which is a form type application.
here user need to enter the details which on submitting gets inserted into database.
We need to give language option within the application. It will be radiobutton option where user on selecting the option layout gets refreshed with the new language.
I have used res/value for different language options.
On setOnCheckedChangeListener i have used configuration to update the locale with different Language but
setContentView(R.layout.leave);
is getting called only once after on changing the radiobutton values
setContentView(R.layout.leave);
is not getting called.
Kindly suggest how solve the above problem.
Check this post. Your answer is there. This post will help you how to handle languagle changes programatically.
Code :
When you call this update configuration and if you are not overriding configuration change, it will call the onCreate and setContentView again.