开发者

How to access all ringtones list in Android phone?

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜