Here's a code snippet I am using, it only get the current default
ringtone (as you are doing), not necessarily the one playing (e.g.:
for a contact with a specific ringtone set) (this is something I'm
having a problem with because Ringtone.isPlaying seems to return false
all the time for all ringtones!). Anyway this should do what you want,
Clive
-------

        Ringtone ringtone = RingtoneManager.getRingtone(this,
Settings.System.DEFAULT_RINGTONE_URI);
        if (ringtone != null)
                return ringtone.getTitle(this);
        else return "<Unknown>";


On Jan 20, 1:44 am, Boozel <[email protected]> wrote:
> please can some one help me. i'm trying to get the name of the current
> ring tone, this is the code i have so far but cant get it to work.
>
> Uri currentTone=Settings.System.DEFAULT_RINGTONE_URI;
> Cursor cur = managedQuery(currentTone, null, null, null, null);
> cur.getString(0);
>
> Thank You.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to