Questions tagged [ringtone]
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.
427
questions
0
votes
0
answers
38
views
How to make a alarm open a new activity android studio kotlin
So what I have seen in tutorials of alarms in kotlin android studio, I just find alarms that make a notification apeear, but the idea for this app is that you need to turn off the alarm with math ...
0
votes
1
answer
50
views
Setting ringtone to different sim cards Android
I am using setActualDefaultRingtone but it is only setting ringtone to sim one. Is there any way to set ringtone to sim 2.
0
votes
1
answer
75
views
Ringtone not playing on certain Samsung devices with Android 11
I'm working on a VoIP app and when a call comes in, the ringtone is not audible on at least a Samsung A20e and a Samsung A71 device running on Android 11. Unfortunately, this info came from a few ...
0
votes
1
answer
55
views
java.lang.IllegalArgumentException: Invalid column: _data
while running this code I am getting invalid: column _data exception
RingtoneManager.setActualDefaultRingtoneUri(
context,
RingtoneManager.TYPE_RINGTONE, Settings....
1
vote
2
answers
136
views
How to set audio file as ringtone in iphone programmatically
I have created an application. In that, I have to list of audio files and "Set as ringtone" option there. I don't know how to set audio file as ringtone.
0
votes
0
answers
44
views
Can't stop ringtone on FirebaseMessagingService
I receive message on FirebaseMessagingService, show notification and start playing ringtone.
Ringtone I get from RingtoneManager:
Ringtone start to playing. I'd like to close notification and stop ...
0
votes
2
answers
322
views
The plugin `flutter_ringtone_player` uses a deprecated version of the Android embedding
I am using Flutter 2.6.0-6.0.pre.2 • channel master,Android SDK version 31.0.0 and Dart 2.15.0 (build 2.15.0-82.0.dev) but when I used flutter_ringtone_player: ^3.0.0
I found deprecated error, please ...
0
votes
1
answer
57
views
Using afconvert command line tool to convert .mp3 files to m4r
I have a short bash script that is meant to convert a folder full of .mp3 files to .m4r ringtones. I am having trouble figuring out why it is throwing the following error:
"Error: ...
0
votes
1
answer
355
views
Android Studio: How to write a ringtone / notification / alarm audio file to storage and see it in the settings
So this functionality was working previously, but I guess somewhere when I upgraded versions, it does not anymore.
I want to create dynamically an audio file (this is working), and copy it to the ...
1
vote
0
answers
238
views
Setting tone as ringtone/notification in Android 11 / R
I am trying to set ringtone / notification tone in Android 11 since last 4-5 days, but doesn't able to complete it, It's not like i haven't tried anything new or something that, I have code which is ...
0
votes
0
answers
150
views
Ringtone continues playing when ListPreference value changes
I have list of target values in ListPreference and I need to play sound when int i exceeds it (target value).
String limit = sharedPreferences.getString("limit", getString(R.string....
0
votes
1
answer
63
views
ringtone can not be stopped
I'm developing a speedometer app and now working on some kind of speed limit function. The idea is to make noise when speed gets bigger than the target value. The code I use:
Ringtone ringtone;
...
0
votes
1
answer
157
views
How can I insert a ringtone in MediaStore when wrapping apk with Mobile Iron?
We're using Mobile Iron to wrap our app.
I'm facing problems while inserting a ringtone in the MediaStore.
I've read many questions but none are up-to-date: Indeed, MediaStorage.Audio.Media.DATA is ...
3
votes
0
answers
52
views
How can you make it so your app can control the ringtone volume through the volume buttons on android 9 and above?
Right now I'm working on a video chat project. I've made it so that when a call comes in, you receive a push notification informing you of the call. The notification produces a ringtone when it's ...
0
votes
0
answers
63
views
How to plya ringtone in Flutter application when app is closed?
I am working on a project where I am using Agora for Video calling feature. I used flutter_ringtone_player to play ringtone whenever there is a call. It works fine when app is active but it is not ...
1
vote
1
answer
77
views
Android: How can I use ringtone.stop in activity by click button
I have Mybroadcastreceiver and when rintone is play stopAlarm.java page is shown If button is pressed i want to use stop ringtone. How can I use r.stop() in my stopAlarm.java
public class ...
0
votes
1
answer
101
views
set custom ring tone in Android Api 29
I have a kotlin function which sets recorded audio as my ring tone.
It copies the sound file to ring tone library and i can play it.
The issue is
1 - It sets title as 1617159412418 instead of the ...
2
votes
1
answer
210
views
java.io.FileNotFoundException when playing ringtone
I want to play Ringtone for Incoming Call. I do like below for that,
Uri defaultRingToneUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE);
if(currentRingtonePlayer != null ...
2
votes
0
answers
76
views
Android Studio Emulator bug? Alarm sound keeps looping even if I set mediaPlayer.setLooping(false)
I am not sure if this is just an emulator bug or did I miss something. I am writing an alarm app. My app gets a ringtone Uri with RingToneManager, then use MediaPlayer to play the ringtone Uri. I want ...
0
votes
1
answer
395
views
Play Ringtone for One minute in Xamarin Android
My alarm project is almost complete and i have code that compares current time and target time every second to see if true and play ringtone on the event that the Alarm matures. My problem is i can't ...
-1
votes
1
answer
191
views
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....
1
vote
2
answers
659
views
Play MOH instead of ringtone in asterisk
I'm trying to play Music file ( MOH ) instead of ringing sound.
It's my extention_custom.conf
[from-internal]
exten = _X.,1,Verbose(call from: ${CALLERID(num)} to ${EXTEN})
same = n,Dial(Local/${...
0
votes
1
answer
75
views
Android set rintone to one existing in library
I want my app to set a ringtone. The user has selected one from the existing library entries before using the system picker and gets this extra back: RingtoneManager.EXTRA_RINGTONE_PICKED_URI
In this ...
0
votes
1
answer
304
views
Android Studio: Set mp3 from raw folder as device ringtone in 2020
I'd like to set a raw mp3 file, which is located in my raw folder, as the device ringtone (using java). Unfortunately the old tutorials do not work anymore, often because you need some write ...
1
vote
0
answers
429
views
Android ringer plays from phone and Bluetooth headset
I'm working on an app with a softphone integration so I'm trying to play the phone's default ringtone when an incoming call is detected. The problem I'm having is that when I connect some AirPods to ...
1
vote
0
answers
485
views
How to make a video call using a ringtone when calling in React Native?
I need to implement a video call in chat in React Native ,
Like when calling in messenger, whatsapp and duo .
I found some SDKs and APIs that implement the video chat like Agora.io , webRtc , and ...
0
votes
1
answer
69
views
How to get Title of Ringtone with Uri
I try this:
Uri ringtoneUri = "content://media/internal/audio/media/55";
Ringtone ringtone = RingtoneManager.getRingtone(context, ringtoneUri);
String name = ringtone.getTitle(context);
and I got ...
0
votes
1
answer
41
views
How to force the notification to use the Alarmsound and not the Ringtone?
My Problem: i have set the notification as an alarm.When the sound on the cellphone is on, the cellphone takes the sound as an alarmsound. But if the cellphone is muted, the cellphone vibrates, but ...
0
votes
1
answer
182
views
How to store user selected Ringtone in android studio?
public void onRingtone(View view) {
final Uri currentTone= RingtoneManager.getActualDefaultRingtoneUri(Setting.this, RingtoneManager.TYPE_ALARM);
Intent intent = new Intent(...
0
votes
0
answers
61
views
Problem with saving mp3 files in internalStorage
Hello I working on a ringtone application and in my app, I have many ringtone mp3 files
in my app I download an save mp3 files into internal Storage with below code :
ContextWrapper ...
0
votes
2
answers
95
views
How to stop the ringing of a triggered alarm?
This is MainActivity.java
package com.example.quizalarm;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.TimePickerDialog;
import android.content.Intent;
import ...
0
votes
1
answer
34
views
alarm does not ring in android from device storage?
i was working on a battery alarm application that selects ring from the device storage i used ListPreference for selecting ring from the users device . i tested that app on my Lenovo TAB 7 . i only ...
1
vote
1
answer
171
views
How to stop ringtone alarm in Android?
I made an alarm play for notifications in Android. But how do you make a Stop Button in Android? Code to start the alarm :
public void playRingtone(View view) {
try {
Uri path = Uri.parse(...
0
votes
0
answers
754
views
Issues setting ringtone in android 10
After the deprecation of getContentUriForPath() and MediaStore.MediaColumns.DATA i modified the code as below :
private boolean SetAsRingtone(File k)
{
ContentValues values = new ...
-1
votes
1
answer
122
views
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 ...
2
votes
0
answers
1k
views
How do you set ringtone per call with iOS CallKit using Xamarin Forms
When using iOS CallKit, I can set a custom ringtone when setting up the CXProviderDelegate instance.
CXProviderDelegate instance contains an instance of CXProvider.
CXProvider constructor takes an ...
0
votes
1
answer
366
views
What is the best/correct way to play/stop a ringtone on Android 8+ even when the app is in the background?
First some background info
I had a problem with starting a background service when the app is in the background in Android 8+.
The documentation clearly describes the new limitations for backgroud ...
7
votes
3
answers
6k
views
How to set a file as a ringtone for Android 10?
I used to use following code to save a raw sound file to external storage and set it as ringtone. But things seems to change in android 10. Can you help me or show me some guideline how to update my ...
3
votes
1
answer
157
views
Get custom ringtone path of contact Android
How can I retrieve the current custom ringtone path assigned to a contact with Android? Are they all stored in a special folder?
ContactsContract.Data.CUSTOM_RINGTONE
Thanks for your help.
EDIT: I ...
1
vote
2
answers
849
views
How to get System ringtones/sounds
How can i get the list of system ringtones or storage ringtones/sounds in react native e.g ring tones, notification tones, so that i can give users choice to set them as notification tone?
I've ...
1
vote
0
answers
267
views
Xcode: Accessing and Setting Custom Ringtones for Contacts
Xcode and iOS App
Is there any solution that will programmatically allow me to set custom ringtones for people on my contact list for an iOS device? I've came across a thread that says it's not ...
1
vote
0
answers
41
views
After restarting, Android plays default notification instead of custom(saved in sharedPreferences)
The three methods: ringtone(); onActivityResult(); saveRingtone(); do work.
During the first load of the app the fourth method loadRingtone(); works too, it can play repeatingly any sound the user ...
0
votes
1
answer
173
views
Ringtone class not playing sound in android
I am using Ringtone class to play sound on message send. But Ringtone not playing sound on some devices like Motorola Turbo Droid. I am using Ringtone class like this.
Uri uri = Uri.parse(...
1
vote
1
answer
361
views
How to set custom ringtone for a specific contact?
I want to set a ringtone for a specific contact. I know how to get contact and set a ringtone for phone but how I can set custom ringtone for a specific contact ?
My Scenario:
I click button and ...
3
votes
0
answers
285
views
Flutter ringtone setter
I practice on Flutter by creating a Media app, And now I need to add one of the downloaded tracks to be user's phone ringtone.
How could I perform this process?
Thanks in Advance!
0
votes
1
answer
43
views
Problems playing two raw files at the same time through two MediaPlayers
I'm developing a Voip-Application and i have an edge case where i want to play two raw files at the same time.
When i have an incoming call from my application i am creating a new Mediaplayer and ...
1
vote
1
answer
167
views
Opening the ringtone setting screen
In my project I want to open the phone ringtone setting screen from the application. How can I do it like below image by code?
3
votes
1
answer
4k
views
How to play the default ringtone in flutter?
I'm trying to play ringtones (and specifically a device's default one) with Flutter. It seems there isn't an flutter internal way to do it so I'm trying to use the audioplayer plugin, using this code:
...
4
votes
0
answers
844
views
Android play ringtone using notification sounds in loop
I have created a notification channel and added sound attributes to it.
The issue I am facing is that I am not able to loop the notification sound until the notification has been cancelled. I am using ...
2
votes
0
answers
105
views
How to show ringtone picker in notification channel?
Notification channel created always shows notification sound picker under sounds. I want to display ringtone picker instead of notification sound picker. Is it possible? If possible can anyone let me ...