hi, i don't know if it wasn't answered many times already but i didn't
had luck to find solution

my manifest looks like this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.android.gx5.ringtoneshuffler"
      android:versionCode="1"
      android:versionName="1.0.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".RingtoneShuffler"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    <receiver android:name=".RingtoneShufflerReceiver"
android:permission="android.permission.READ_PHONE_STATE">
                <intent-filter>
                <action android:name="android.intent.action.PHONE_STATE" />
        </intent-filter>
    </receiver>
        <uses-permission android:name="android.permission.PHONE" />
        <uses-permission android:name="android.permission.WRITE_SETTINGS" />
</application>
</manifest>

but when i get called to RingtoneShufflerReceiver and i try to mofidy
system settings with
RingtoneManager.setActualDefaultRingtoneUri(context,RingtoneManager.TYPE_RINGTONE,uri);
(i am trying to set new ringtone) i always get security exception
which says: Permission Denial: writing
com.android.providers.settings.SettingsProvider uri content://settings/system
from pid=561, uid=10017 requires android.permission.WRITE_SETTINGS

i have this in my uses_permission tags, what else i need to make it
work?

thanks in advance

--~--~---------~--~----~------------~-------~--~----~
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