Android ringtone picker

I've created an android ringtone picker menu using that code:

    Intent intent = new Intent(RingtoneManager.ActionRingtonePicker);
    intent.PutExtra(RingtoneManager.ExtraRingtoneTitle, "Select ringtone for notifications:");
    intent.PutExtra(RingtoneManager.ExtraRingtoneShowSilent, false);
    intent.PutExtra(RingtoneManager.ExtraRingtoneShowDefault, true);
    intent.PutExtra(RingtoneManager.ExtraRingtoneType, "TYPE_ALL");
    intent.PutExtra(RingtoneManager.ExtraRingtoneExistingUri, sharedLogic.getDefaultSongUriAndroid()); //getDefaultSongUriAndroid return the uri saved in a database as default ringtone
    ((Activity)Forms.Context).StartActivityForResult(intent, 0);

All is working fine except that the RingtoneManager.ExtraRingtoneExistingUri isn't working and no ringtone is selected when the ringtone picker opens.
Can someone explain me how can i set a ringtone as selected by default? Thanks

Sign In or Register to comment.