[android-developers] how to change sequre settings from my app
Good morning
I'm trying to change some settings on system using a root device. I'm trying to change the speech rate of the TTS.
I use this code to do that:
int _value = 100; // sample value
Settings.Secure.putInt(this.getContentResolver(), Settings.Secure.TTS_DEFAULT_RATE, _value);
Settings.Secure.putInt(this.getContentResolver(), Settings.Secure.ACCESSIBILITY_ENABLED, 0);
Settings.Secure.putInt(this.getContentResolver(), Settings.Secure.ACCESSIBILITY_ENABLED, 1);
the problem is the application need these permissions in the manifest file:
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
I am using a rooted device but the application is still not working.
Please, could you give me any suggestions?
thanks in advance
Regards
Jonathan Chacón Barbero
Accessibility, usability and new technologies consultant
Accessibility should be a base of the project, it should not be a patch of the product
Tlf/Phone: +34 679953948
LinkedIn: http://es.linkedin.com/in/jonathanchacon
Messenger: Tyflos@hotmail.com
GTalk: Tyflos2001@gmail.com
Skype: Tyflos_
FaceTime: jonathanchaconbarbero@gmail.com
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home