[android-beginners] Re: Launching Settings

2009-08-07 Thread Balwinder Kaur (T-Mobile)
Try this piece of code : ComponentName c = new ComponentName (com.android.settings,com.android.settings.SecuritySettings); Intent i = new Intent(Settings.ACTION_SECURITY_SETTINGS); i.addCategory(Intent.CATEGORY_LAUNCHER); i.setComponent(c);

[android-beginners] Re: Launching Settings

2009-08-07 Thread Teal
Awesome! Thanks Balwinder, your code works perfectly. A little exploration: I tried to use Intent.ACTION_MAIN instead of Settings.ACTION_SECURITY_SETTINGS for the action because that's what the DDMS seemed to indicate. But the difference is that it first leads me to the Settings, and then to