GodsMoon wrote:
> I'm trying to link to the settings menu.
> The following code works great for stock Android but doesn't work in
> the 2.1 HTC Sense UI.
>
> Intent goToSettings = new Intent(Settings.ACTION_LOCALE_SETTINGS);
> goToSettings.setComponent(new
> ComponentName("com.android.settings","com.android.settings.SecuritySettings"));
> startActivity(goToSettings);
>
> On the HTC Legend that code gives the following Error in the LogCat
> E/AndroidRuntime( 626): android.content.ActivityNotFoundException:
> Unable to find explicit activity class {com.android.settings/
> com.android.settings.SecuritySettings}; have you declared this
> activity in your AndroidManifest.xml?
>
> I don't have a phone with the HTC Senese UI. How do I link to settings
> menu on the HTC Legend?
Try getting rid of the setComponent() call. The ACTION_LOCALE_SETTINGS
should be sufficient, and will cover you in case they renamed the class.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Development Wiki: http://wiki.andmob.org
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.