I have a hidden directory that contains some mp3 resources and I want to make those mp3 files displayed in my alarm application. How can I add my mp3 files into ringtonePreference's ringtone list?
I have tried below but it doesn't seem to work.
@Override
protected void onPrepareRingtonePickerIntent(Intent ringtonePickerIntent) {
super.onPrepareRingtonePickerIntent(ringtonePickerIntent);
ringtonePickerIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, Uri.parse("file:///hidden_directory/mp3/test.mp3"));
}