I want to access the ringtones list. How can I do that?
A开发者_JAVA技巧t later I want to add/ remove ring tones to library? Is it possible?
You can use the RingtoneManager
to access all the existing ringtones.
Have a look at this question for an example of how to add ringtones.
Try this to access the ringtone file
File racine = getDatabasePath("/system/media/audio/ringtones");
final File[] liste = racine.listFiles();
if (liste == null) return;
final int lng = liste.length;
if (lng == 0) return;
精彩评论