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);
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
2 matches
Mail list logo