Neo,

Please see this:

http://developer.android.com/reference/android/provider/Settings.Secure.html

Secure system settings, containing system preferences that *applications can read but are not allowed to write*. These are for preferences that the user must explicitly modify through the system UI or specialized APIs for those values, not modified directly by applications.

WRITE_SECURE_SETTINGS is defined with android:protectionLevel="signatureOrSystem" and thus cannot be obtained by regular SDK applications.

-- Kostya

21.04.2011 23:51, Neo Apostol ?????:
Hi there,
Explain me please, Why I can't create settings of the proxy server with help of method:

//Main.java
Settings.Secure.putString(getContentResolver(), Settings.Secure.HTTP_PROXY, param);
//AndroidManifest
<permission
android:name="android.permission.WRITE_SECURE_SETTINGS"
android:protectionLevel="signatureOrSystem">
</permission>

<permission
android:name="android.permission.WRITE_SETTINGS"
android:protectionLevel="signatureOrSystem">
</permission>

<uses-permission
android:name="android.permission.WRITE_SETTINGS" >
</uses-permission>
<uses-permission
android:name="android.permission.WRITE_SECURE_SETTINGS" >
</uses-permission>

Thank You.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to