I can set the ringtone perfectly when I insert a line in Mediastore.Audio.Media
newUri = this.getContentResolver().insert(MediaStore.Audio.Media.getContentUriForPath(k.getAbsolutePath()), values);
But for an existing record, when I try to insert a row again, logcat shows me database restriction error 19. So, how do I get around this? Basically I need to install the .ogg file from my soundcard application as a ringtone that already exists in the reseller database ... Any help is appreciated.
Vivek source
share