I need to have URI of the default ringtone.
I can have the default ringtone using this code
Uri uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
Ringtone rt = RingtoneManager.getRingtone(context,uri);
and in the rt (Ringtone), I can see the mUri like in the screenshot but it is not a public property, so I cannot have it.
How can I have that property?
Note: There is a getUri in the RingtoneManager.java but it is hidden.
/** {@hide} */
public Uri getUri() {
return mUri;
}