Questions tagged [ringtonemanager]
77 questions
0
votes
2 answers
Set ringtone from a path in android
I had a path of song, example:
/sdcard/music/song/song.mp3
so I want to implement a button click that this song will be set ringtone
.Thank you all

Tan Danh
- 1
- 1
0
votes
0 answers
Android: RingtoneManager not set the default ringtone
I am trying to change the default ringtone by programmatically. From a search I am getting the code like
RingtoneManager.setActualDefaultRingtoneUri(
mContext,
RingtoneManager.TYPE_RINGTONE,
…

Binil Surendran
- 2,524
- 6
- 35
- 58
0
votes
1 answer
How to get the mp3 file of default / current ringtone in android
I am developing a fake call application, I wanted to get the mp3 file of the current ringtone so that I can use it in another application for creating the fake call with the same ringtone file. I have searched a lot but cannot find the right…

Muhammad Qasim Riaz
- 33
- 1
- 9
0
votes
0 answers
App crashes when trying to set song as specific friend in android studio, app crashes at getContentresolver
I am trying to make ringtone app. I am new to android developement and by doing this I am also learning a lot. I managed to set songs as ringtone for all contacts,However when I try to set song for specific friend my app crashes.
Firstly I am using…

Petar
- 1
- 1
0
votes
1 answer
MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present with RingtoneManager
I built an app for randomizing my ringtones following "Create a Ringtone Randomizer on Android" tutorial on https://code.tutsplus.com, but when I run the app I get this error:
E/MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
And the…

JediCate
- 396
- 4
- 8
0
votes
2 answers
Notification sound android studio
I am currently developing an app and its notification system is working well. Except when i send a message from firebase to the phone the notification does not make a sound (default phone sound). The question is what is going wrong in my java…
0
votes
1 answer
Ringtone selection intent - default ringtone
I want to let the user select a notification ringtone for the push notifications of my app.
This is what I do:
Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT,…

fweigl
- 21,278
- 20
- 114
- 205
0
votes
1 answer
how to set raw audio file as ringtone
So i'm trying to set an audio file located in the raw as a ringtone and then saving it to my sdcard. The current code seems to save a file, but that file plays some generic ringtone as opposed to the sound I'm trying to get it to play. What's the…

CarbonZonda
- 167
- 2
- 11
0
votes
0 answers
Display list of vibration types in Android
I am working on an Android app where in I need to display the vibration types to the user to select similar to what WhatsApp does in the Notification settings screen.
Just as the RingtoneManager class provides the following ACTION_RINGTONE_PICKER…

Parth Doshi
- 4,200
- 15
- 79
- 129
0
votes
1 answer
How to set ringtone in Android, using ringtone manager?
I am using the following code, but it doesn't seem to change the ringtone. What am I doing wrong, or is there an easier way to set an mp3 to ringtone? I have a uri that parses the location, and I call the following function. I know the uri is…

Brandon K
- 73
- 6
0
votes
0 answers
Android RingtoneManager
I get Ringtones by this following code
Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, "ringtone");
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT,…
0
votes
1 answer
Use RingtoneManager with custom raw files
I want to use RingtoneManager (or create a custom similar class if not possible) to choose one of my custom list of raw files (I want to show only my files not the default list including my files).
I am used to use this way to pick ringtone How to…

youssef1700
- 109
- 11
-1
votes
1 answer
I cannot set the audio file as ringtone for older version devices. The section I wrote for new android versions works fine
Code:
ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.TITLE, k.getName());
values.put(MediaStore.MediaColumns.MIME_TYPE, "audio/mp3");
if (RingtoneManager.TYPE_RINGTONE == type) {
…

2074
- 11
- 4
-1
votes
1 answer
Issue with adding custom ringtone to Ringtonemanager for Android app development?
I am trying to add a custom ringtone for my android app. All i have done is created a raw folder in res directory and added a mp3 file there as a ringtone using below code. some how only default notification tone from Android app has been played on…

Tim
- 367
- 1
- 12
-1
votes
1 answer
React Native RingtoneManager
I am using https://github.com/millerbennett/react-native-ringtone-manager
But unfortunately RingtoneManager.getRingtones(RingtoneManager.TYPE_ALL) always return 'undefined'.
I have no error, does anyone knows something about that problem?
I am using…
user11114271