android - Change the language from app? -



android - Change the language from app? -

how can alter language phone android app? can give me example?

thanks in advance.

phone-level language command typically done using restricted interfaces: far aware there no direct command app part of public android interface.

your best bet utilize intent open language picker. intent filter is:

<intent-filter> <action android:name="android.intent.action.main" /> <action android:name="android.settings.locale_settings" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.voice_launch" /> </intent-filter>

so should work:

intent = new intent(); i.setaction(android.provider.settings.action_locale_settings); i.addcategory(intent.category_default); i.startactivity();

and user can pick language there.

android

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -