How to get the path to ringtones "/system/media/audio/ringtones" programmatically in Android?

prasad.gai picture prasad.gai · Apr 26, 2012 · Viewed 14.2k times · Source

I have device with some ringtones at /system/media/audio/ringtones by default. I would like to get that path as programatically.I mean i would like to get the ringtones directory path from my device as programetically.

Answer

Wayne picture Wayne · Oct 7, 2013

As of Android 2.2 you can use DIRECTORY_RINGTONES to get default ringtone directory

Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_RINGTONES)