How about:

static Uri getActualDefaultRingtoneUri(Context context, int type)

or

static Ringtone getRingtone(Context context, Uri ringtoneUri)

Ringtone in turn has:

String getTitle(Context context)

-- Kostya

05.03.2011 14:17, mort пишет:
I try to display (and change) the current default ringtone in an app.
Both Settings.System.getUriFor(Settings.System.RINGTONE) and
RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE) will
return "content://settings/system/ringtone" (at least on my device).
I tried to get the title with
String[] proj = { MediaStore.Audio.Media.TITLE };
Cursor cursor = managedQuery(ringtoneUri, proj, null, null, null);
but don't get a result (cursor == null).
Is there any way to get a proper media URI (content://media/external/
audio/media/...) or to get the title of content://settings/system/ringtone?



--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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