Skip to content
Advertisement

Android Programmatically open Settings-> Security tab on Button Click

How can I open Android > Settings > Security tab from within my app?

In my app, I have one simple button and I want to open the Security tab setting on button click listener event.

I have tried to open android settings, but how do I open specifically the security one?

Advertisement

Answer

Try this instead:

        Intent intent = new Intent(Settings.ACTION_SECURITY_SETTINGS);

        startActivity(intent);
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement