I have added \"android.permission.WRITE_SECURE_SETTINGS\" in the Manifest. But still i get an error message saying - required \"WRITE_SECURE_SETTINGS\".
I have seen
I was able to fix this problem by enabling notification access.
go to settings click on sound and notification scroll down click on notification access