A ringtone or ring tone is the sound made by a telephone to indicate an incoming call or text message. Not literally a tone nor an actual (bell-like) ring anymore, the term is most often used today to refer to customizable sounds used on mobile phones.
Questions tagged [ringtone]
442 questions
52
votes
11 answers
How to show a notification without a sound java
How can I make a notification that doesn't make a sound when I build it? I am building a notification, and my users don't like the fact that it makes a sound.
How can I change it to a silent one / no sound at all?
How I show…

Jason
- 1,658
- 3
- 20
- 51
46
votes
13 answers
How to set ringtone in Android from my activity?
I'm trying to find a way to set a new default ringtone by code from my Android activity.
I have already downloaded the ringtone into a bytearray.

Vidar Vestnes
- 42,644
- 28
- 86
- 100
25
votes
6 answers
MediaPlayer setDataSource failed with status=0x80000000 for Ringtone set by filepath on 2.3.4
Title says most of it.
My application has been playing ringtones pointed by uri like content://media/internal/audio/media/387 or content://media/external/audio/media/1655 (for custom ringtones on SDcard I believe) using both setDataSource(fileInfo)…

Koger
- 1,783
- 2
- 23
- 34
21
votes
1 answer
How can I change the ringtone in android programmatically?
I'm trying to write an app that (among other things) will change the user's ringtone based on their location.
However, I'm having difficulty setting the ringtone of my phone from within my app. I've been able to display a list of the phone's…

dckrooney
- 3,041
- 3
- 22
- 28
21
votes
3 answers
How to get Ringtone name in Android?
I'm allowing my user to pick a ringtone for notifications in my app. I want to store the URI of the sound along with the human readable title of the sound.
So far the URI code works great:
Uri uri =…

c_idle
- 1,448
- 4
- 22
- 40
20
votes
4 answers
How to set ringtone with RingtoneManager.ACTION_RINGTONE_PICKER?
I try to find solution here, but there are only solution for own/selected file, not for code when I call picker. I use following code when user press button:
Intent intent = new…

Michalsx
- 3,446
- 5
- 33
- 46
19
votes
3 answers
setting audio file as Ringtone
I have save file in sdcard/media/audio/ringtones folder. That file will appear in list of ringtone selection from settings/sound/phone Ringtone.
But I want to set that file as a ringtone from my code.
Here is my code.
File k = new File(path,…

djk
- 3,671
- 9
- 31
- 40
16
votes
1 answer
Get the Ringtone title from RingtonePreference
I have a RingtonePreference that is used to select a ringtone that is broadcasted to a receiver used in an Alarm application.
I would like to display the title (the titles displayed in the list you see when you choose the ringtone) of the selected…

Alex Bergsland
- 325
- 2
- 9
15
votes
2 answers
Getting a list of available Ringtones in Android
I've seen plenty of examples of how to set a default ringtone, but what I'm more interested in is being able populate a drop down box list filled with the available ringtones on the phone. So the list that people see when they change their ringtone…

user877244
- 171
- 1
- 1
- 5
13
votes
4 answers
How to implement RingtonePreference in PreferenceFragmentCompat?
I am creating an app using one AppCompactActivity and all other views are using Fragment. So I would like to use PreferenceFragmentCompat. But I am getting the following error when I create this.
android.view.InflateException: Binary XML file line…

Vinil Chandran
- 1,563
- 1
- 19
- 33
13
votes
2 answers
Incoming call dynamically override default ringtone
My app allows you to specify a different ringtone for different incoming events. EG: incoming call, incoming SMS, etc.
What I am trying to accomplish is when I receive for example an incoming call, I check my apps database if a specific option is…

userdelroot
- 197
- 1
- 5
13
votes
4 answers
Setting Ringtone in Android
Possible Duplicate:
How to set ringtone in Android from my activity?
I have sounds files in my res/raw folder and i want to select a sound to set as a ringtone on the click of a button. Wonder how can i do that?

Muhammad Maqsoodur Rehman
- 33,681
- 34
- 84
- 124
12
votes
6 answers
How to get current ringtone in Android?
I have found lots of examples how to get default ringtone. Something like that:
Uri alert = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
Ringtone ringtone = RingtoneManager.getRingtone(getApplicationContext(), alert);
…

chabislav
- 939
- 1
- 8
- 27
12
votes
3 answers
How do I stop the currently playing ringtone?
I'm writing an app that sometime fires reminders that are supposed to play ringtones. I can start the ringtone OK, but can't stop it.
I have a dismiss method in my fragment that should stop the currently playing ringtone and close the activity, but…

Grisha S
- 818
- 1
- 6
- 15
10
votes
2 answers
RingtoneManager returning null ringtone
I'm using RingtoneManager, and apparently on some phones it returns null all of the time. I know it returns null if the sound is silent or it cant find the tone. Why would null be returned if the sound is on and there is a tone? The code works on…

atomicbaum
- 311
- 1
- 3
- 6