I have the URI for a specific sound file, the default ringtone contents://settings/system/ringtone. How I can get the title of and the other details of that song?
I have the URI for a specific sound file, the default ringtone contents://settings/system/ringtone .
Share
Getting the default ringtone metadata is a bit more complicated than you assume.
A good place to start is the
RingtoneManagerclass. It provides methods for getting the defaultRingtone, from four areas:Using this class it is straightforward to get the default ringtone’s title:
I’m not sure if it’s possible to get other data about ringtones.