开发者

How to access all ringtones list in Android phone?

开发者 https://www.devze.com 2022-12-18 01:44 出处:网络
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

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

精彩评论

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