I\'m trying to find a way to set a new default ringtone by code from my Android activity.
I have already downloaded the ringtone into a bytearray.
bytearray
I found this code from the Media application from Android.
Settings.System.putString(resolver, Settings.System.RINGTONE, ringUri.toString());
this works form my.