Hi, i am not trying to fight with system. i am just trying to publish application having multilanguage capability. so this should not be fighting. Whatever, http://adrianvintu.com/blogengine/post/Force-Locale-on-Android.aspx in this link i have found alternative way of doing this. by this way all texts changed proposed language, however there is still problem in "Menu" even if i recreate menu after changing locale.
On Jul 27, 5:00 pm, RichardC <[email protected]> wrote: > You have already asked this and got a - don't do this - reply from > Dianne Hackborn. > > DH > "You are blowing away the current configuration in the resources > with your > own you have created that is not initialized. Things aren't going to > work > when you do that. > > You could improve that by giving it a properly created Configuration, > but I > don't want to help with doing that because what you are trying to do > is > never going to work quite right because you will be fighting with the > platform over what configuration is being used in the resources. " > > See your previous > thread:http://groups.google.com/group/android-developers/browse_thread/threa... > > On Jul 27, 1:42 pm, Engin Arslan <[email protected]> wrote: > > > > > any ideas? > > > On Jul 23, 3:17 pm, Engin Arslan <[email protected]> wrote: > > > > Specifically,menulanguage changes to English (which is default > > > language) when I try to changelocale. And then it does not change any > > > other language > > > > On Jul 23, 2:18 pm, Engin Arslan <[email protected]> wrote: > > > > > Hi all, > > > > > I am developing application in which user can choose application > > > > language. To achieve this, I am changing "Locale" as follows: > > > > Localelocale= newLocale("language code here"); > > > > Locale.setDefault(locale); > > > > Configuration config = new Configuration(); > > > > config.locale=locale; > > > > > > > > getBaseContext().getResources().updateConfiguration(config, > > > > getResources().getDisplayMetrics()); > > > > and restart activity in following way: > > > > > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); > > > > > > > > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); > > > > . This helps to change languagein runtime. > > > > However , optionmenulanguage does not change , in factmenuchanges > > > > if I close app completely and start again but does not change in > > > > runtime. I even have tried onPrepareOptionsMenu but it did not work? > > > > > What is the reason of this? or can you suggest me another possible > > > > way? > > > > > Bests, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

