Launch an application with a specific locale

Changing the locale for the device is done in the settings and cannot be performed by the AFAIK application. I know how to force my own application to a specific language described, for example. here:

http://www.tutorialforandroid.com/2009/01/force-localize-application-on-android.html

So now to my question. Can I, programmatically, perform locally actions that are not mine?

I can imagine two ways this might be possible:

  • An indication of the language in the intent used to trigger the activity.
  • Access and configuration management of the performed actions (just as I can change the settings of my own activities).

Any thoughts? Is it possible? It is reasonable? I assume that 2. will be more direct, but will require a certain permission (for example, a modified atcitiy should allow it in the manifest file). But I would agree to 1. or the like.

I want to see some applications in another language, but not change the language standard. For example. Android Market, which displays only comments in one language. I canโ€™t think of other things right now.

It is impossible to find much written in Locale in the documentation, which is not possible. But in the hope that some undocumented features may include this :)

+6
android locale
source share
2 answers

You cannot if the operation you are calling accepts a special locale parameter.

So, you can implement this with your two applications or with your friendโ€™s application, but there is no general way to do this.

+1
source share

The only way I can imagine is to programmatically change the locale of the entire device. But I think that you can open the settings screen and you need to select the correct language before starting the application.

-one
source share

All Articles