How to get Title of Ringtone with Uri Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of How to get Title of Ringtone with Uri without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I try this:

Uri ringtoneUri = "content://media/internal/audio/media/55";
Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri);
String name = ringtone.getTitle(context);

and I got result: name = 55, not a normal title like “common name”

I also saw Get the Ringtone title from RingtonePreference but there no accepted answer


try this

  Uri ringtoneUri = RingtoneManager
        Ringtone ringtone = RingtoneManager.getRingtone(this, ringtoneUri);
        String title = ringtone.getTitle(this);

We are here to answer your question about How to get Title of Ringtone with Uri - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji