ringtone

Is it possible to change the Twilio Browser Client ringtone?

只愿长相守 提交于 2019-12-01 20:49:07
I did not find it in Twilio documentation that I can change it. Does anyone has a solution to this problem? Perhaps it is possible to replace the mp3 file that is downloaded to the browser and used as a ringtone. I need this, because my clients are somewhat annoyed by the default ringtone of Twilio browser client. It is possible to change default incoming ringtone with some workaround. Following Twilio client API: https://www.twilio.com/docs/client/device#sounds you can disable incoming ringtone calling Twilio.Device.sounds.incoming(false). Then you will need to hookup to event Twilio.Device

How can I programmatically determine the default ringtone on an iPhone?

六月ゝ 毕业季﹏ 提交于 2019-12-01 18:56:16
Is there a way to determine which ringtone has been set as the default one on the user's iPhone from within my application? If so, how can this be done? /Users/nikhil.dhamsania/Library/Application Support/iPhone Simulator/User/Media/iTunes_Control/iTunes/ringtones.plist This is the path where the ringtones.plist file exist in the simulator can we do something like getting the status for active ringtone in the iPhone? Sorry to say that but Apple is damn conservative.You cannot use or change the ringtones available programmatically. I think its not possible in iphone... you are not allowed to

How to show a notification without a sound java

淺唱寂寞╮ 提交于 2019-12-01 14:35:57
问题 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 notification: android.support.v7.app.NotificationCompat.Builder builder = new android.support.v7.app.NotificationCompat.Builder(main); builder.setStyle(new android.support.v7.app.NotificationCompat.BigTextStyle().bigText(text)); builder.setSmallIcon(R.drawable.app);

Android: save sound as ringtone / SQLiteConstraintException

我是研究僧i 提交于 2019-12-01 09:28:34
I'm trying to save a sound as a ringtone in Android using this code. It works like a charm but will fail if I try to save a ringtone that has already been inserted. A "SQLiteConstraintException" occurs while saving but I'm not able to catch the exception, in fact, I can't catch any execption. Here's the part of my code: Uri uri = MediaStore.Audio.Media.getContentUriForPath(k.getAbsolutePath()); try { this.getContentResolver().insert(uri, values); } catch (SQLiteConstraintException e) { Log.e("error", e.getMessage()); } catch (SQLiteException e) { Log.e("error", e.getMessage()); } catch

Android detect which ringtone is actually playing (Ringtone.isPlaying problem)

巧了我就是萌 提交于 2019-12-01 09:25:43
On Android, I'm having a problem trying to figure out which ringtone is actually playing (I'm not trying to detect the default ringtone, but the one actually playing as it may be different due to user setting a particular ringtone for a particular contact). I'm using the Ringtone.isPlaying() function as I cycle through (successfully) all the available Ringtones from the RingtoneManager. However none of them ever returns true to Ringtone.isPlaying()! Anyone have a clue what I am doing wrong? Here is the code sample that is definitely being run whilst the ring is playing: RingtoneManager rm =

How to clear Mediastore before setting ringtone

十年热恋 提交于 2019-12-01 07:30:21
问题 When I set a ringtone from my app works once, but when running the code again, it tries to create a duplicate entry in the media store, which creates problems. Without creating seperate unique file names for every sound file, I want to fix this problem. I found this solution posted in an answer here: setting audio file as Ringtone and am trying to use that to fix mine. When I try it in my code below, I get two errors. One is an SQLiteException and the other is a RuntimeException which is

Ringtone Preference not saving choice

余生颓废 提交于 2019-12-01 04:19:26
问题 I have a ringtone preference in my app but when I select the tone I want, it does not get stored in the preference value. I can click the preference again and it will not show what I just selected. here is the XML <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="Audio Settings"> <CheckBoxPreference android:key="SMS_PREF_TTS" android:title="Say name of sender" android:summary="When a person

How do I play the default Phone ringtone programmatically?

折月煮酒 提交于 2019-12-01 03:51:19
I have been working on a conference related app. I want to show ringing notification for the incoming call. I have tried with AVAudioPlayer, and it worked fine for custom sounds. My question is, is it possible to get default ringtone from iPhone (user selected tone in settings) and play for my app? thanks for your valuable suggestions... CReaTuS No, no SDK API for get iPhone ringtones. But you can download those from another links and add to your project dreamlax Someone has asked a similar question here but overall it does not appear possible, at least if you want to distribute your

Can I insert a android:defaultValue trait for RingtonePreference, via XML?

拈花ヽ惹草 提交于 2019-12-01 03:08:53
问题 Is there a way to add a default value in a RingtonePreference, via XML? For example, here's what my preference.xml looks like. <RingtonePreference android:key="alarm" android:title="Alarm" android:name="Alarm" android:summary="Select an alarm" android:ringtoneType="alarm" android:showDefault="true" /> If possible, I'd like to set the RingtonePreference to the default ringtone, like this: <RingtonePreference android:key="alarm" android:title="Alarm" android:name="Alarm" android:summary="Select

How do I play the default Phone ringtone programmatically?

寵の児 提交于 2019-12-01 00:48:01
问题 I have been working on a conference related app. I want to show ringing notification for the incoming call. I have tried with AVAudioPlayer, and it worked fine for custom sounds. My question is, is it possible to get default ringtone from iPhone (user selected tone in settings) and play for my app? thanks for your valuable suggestions... 回答1: No, no SDK API for get iPhone ringtones. But you can download those from another links and add to your project 回答2: Someone has asked a similar question