I am creating an app to lock the screen if user has set any lock. And if he has not set any lock , app will redirect it to lock screen in settings to let user set the lock first. I have used Device Admin permission to lock the screen and KeygaurdManager.isDeviceSecure method to check if it has been set or not .
But i am unable to find how to redirect user to lock screen programmatically. Please help.
Thanks in advance.