On Thu, Mar 1, 2012 at 3:00 AM, Raphael <[email protected]> wrote:
> In my project, I want to change the language,so I call the class:
> com.android.settings.LocalePicker.
This is not part of the Android SDK.
> My codes are as follows:
> Intent intent = new Intent(Intent.ACTION_MAIN);
> intent.setClassName("com.android.settings",
> "com.android.settings.LocalePicker");
> startActivity(intent);
> But I caught an exception ( on Android 4.0.x Platform):
>
> AndroidRuntime(10354): android.content.ActivityNotFoundException:
> Unable to find explicit activity class {com.android.settings/
> com.android.settings.LocalePicker}; have you declared this activity in
> your AndroidManifest.xml?
>
> So I want to know, didn't Android 4.0 have the class----
> com.android.settings.LocalePicker ?
> Instead, how should I do?
startActivity(new Intent(android.provider.Settings.ACTION_LOCALE_SETTINGS));
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in NYC: http://marakana.com/training/android/
--
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