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
For the api that I used, which required WRITE_SECURE_SETTINGS privileges, I had to include this in the manifest:
...
ref: https://github.com/android/platform_packages_apps_settings/blob/master/AndroidManifest.xml
I also had to run the application as a system app (under: /system/app). Here is an how to: http://www.addictivetips.com/mobile/how-to-install-any-app-as-system-app-on-android/