Android Programmatically open Settings-> Security tab on Button Click

Tags: , ,



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?

Answer

Try this instead:

        Intent intent = new Intent(Settings.ACTION_SECURITY_SETTINGS);

        startActivity(intent);


Source: stackoverflow