How to set sound file as ringtone in Android?

I have certain sound files and you want to create an application that allows you to set these sound files as ringtones.

Can someone tell me how to implement it? What API should I use for this purpose?

I hope to get an answer soon.

Hi

Sunil

+4
source share
1 answer

A quick google search showed this discussion in google groups explaining how to set a software default ringtone by default:

http://groups.google.com/group/android-developers/msg/ab7fa2fbd87daba8

Then the second important thing you need is a list of all the sound files available on the device. This can be done by executing this piece of code:

http://www.androidsnippets.org/snippets/54/

With these two approaches, it will be easy for you to start creating your application.

+1
source

Source: https://habr.com/ru/post/1311081/


All Articles