Android :: Playing Default Ringtone Using SoundPool
Nov 1, 2010
I've been trying to use SoundPool to play the default ringtone without success. In the code below
String ringtone = Settings.System.DEFAULT_RINGTONE_URI.getPath();
SoundPool ringPhone = new SoundPool(2, AudioManager.STREAM_RING, 1);
int soundID = ringPhone.load(Settings.System.DEFAULT_RINGTONE_URI.getPath(), 1);
int soundID = ringPhone.load(ringtone, 1);
ringPhone.play(soundID, 0.99f, 0.99f, 1, 0, 1);
I get the message "error loading content /system/ringtone sample 0 not READY". Replacing the URI with a hard path to an existing mp3 file on the sd card yields similar results.
View 1 Replies
Oct 31, 2010
How do I get the default ringtone to play? I've tried using SoundPool (preferred method) and MediaPlayer to play it but I'm getting nowhere. I've done so many dumb things, I'll just include the last fail. In the following snippet: String ringtone = Settings.System.DEFAULT_RINGTONE_URI.getPath(); SoundPool ringPhone = new SoundPool(1, AudioManager.STREAM_RING, 0); int soundID = ringPhone.load Settings.System.DEFAULT_RINGTONE_URI.getPath(), 1); ringPhone.play(soundID, 0.99f, 0.99f, 1, 0, 1.0f);
loads but plays nothing. When I display Settings.System.DEFAULT_RINGTONE_URI.getPath(), it's returning /system/ ringtone
View 2 Replies
View Related
Mar 28, 2010
I'd like to set a new default ringtone without using the ringtone picker. In other words, there is a certain ringtone that is already installed on my system, and I want to programmatically set it to be my default ringtone without any human interaction. The reason I want this is because every time I reboot my N-1, my previous default ringtone setting gets forgotten, and I am given another ringtone that I don't like. I want to set up an app that I can run manually (or better yet, to cause to automatically run upon startup) which will reset my default ringtone to the one that I like without my having to manually do this via the Settings.
The only examples I have found so far for doing this involve using the ringtone picker, but as far as I can tell, this requires human interaction, which I want to avoid.
View 5 Replies
View Related
Sep 13, 2010
Trying to help a friend with his Droid. He downloaded a ringtone from the Verizon site and he is trying to set it up as his "RINGTONE". Can someone please walk me through this.
View 5 Replies
View Related
Jun 20, 2010
I have the new HTC EVO 4 and I have certain ringtones set for different people, but my phone keeps playing my default ringtone I set for my phone, How do i fix this.
View 3 Replies
View Related
Feb 26, 2010
I currently start a Ringtone on Android and it plays fine. However when I try to stop the ringtone it doesn't stop or atleast doesn't stop straight away, it will keep in playing until it just plays out.
View 1 Replies
View Related
Sep 30, 2010
I have a buddy with a Hero that had a ringtone of a annoying little guy going" ring" "ring". He said it was a default ringtone, but I can't find it anywhere. Can someone point me in the right direction?
View 4 Replies
View Related
Nov 17, 2009
Once in a great while, I don't get the custom assigned ringtone playing when someone calls me. Anyone else?
View 2 Replies
View Related
Sep 28, 2010
It started last night. I got an email and "Glory Days" starts playing after the phone vibrated. I got an email and some other song started. This afternoon I get a call and Dr. Dre starts playing!
In every case, this was not the set ringtone, nor even in the ringtone list! These are songs from my SD card! - What the heck! Any idea how this could have happened? If it was all my SMS or email or calls, I would say its an app, but its been Everything!
View 4 Replies
View Related
Nov 12, 2010
What is the default nexus one ringtone? Mine seems to be lost. Also, can someone upload it or knows where I can get it again?
View 1 Replies
View Related
Sep 26, 2010
I accidentally clicked use as default and selected the standard ringtone package. I would like to clear the default for this so i can use custom ringtones again but cannot for the life of me find what default i need to clear to bring that dialogue back up to choose another option. Rooted running fresh 3.3 and launcher pro if that matters. Anyone got any insight i have tried clearing settings data and numerous others to no avail
View 3 Replies
View Related
Nov 22, 2010
I have a default ringtone for my contacts. That's all well and good and it will play the correct ringtone.
Now, the problem is, I go into my contacts and set custom ringtones for different people so I know it's them calling without even having to look. Probably about 10 or so people. The rest of the contacts, plus numbers not in my phonebook get the default.
All was well and good until last week. Now the default plays for everyone, no matter what. And when I went into my contacts and their contact page, it shows their ringtone as being the custom one I set but it's not playing. All the songs are still on my phone.
Only thing I can think of is I cleared data in ChompSMS, updated and downloaded a few apps. I've turned the phone on/off and took battery out but nothing.
View 6 Replies
View Related
Oct 24, 2010
I keep having to change my default ringtone to my choice, for some unknown reason, it keeps getting changed back to default. I have rings extended and have changed most of my contacts ringtones and they have stayed, but whenever I go to settings and change it and then either shut my phone off, plug it in, whatever, it causes it to go back to default. I have tried ringdroid and that seems to only work as a ringtone maker, it will not show up in the menu to change tones like Rings Extended does. I also moved my ringtones to an appropriate folder for access. I also have adw launcher now (previously Launcherpro plus-which made no difference)
View 5 Replies
View Related
Jan 19, 2010
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
View 1 Replies
View Related
Jul 16, 2010
My particular problem is that the phone is answering with a voice command that tells you who is calling if the caller is in my contacts list. I tried to find it listed in the list for ringtones to no avail. I've also checked a couple of different options but the phone is set to the voice announcement by default. Please help. My phone is rooted (I think), but currently I am on a looong learning curve to be able to troubleshoot these things on my own.
View 5 Replies
View Related
Jan 6, 2010
For some reason my Eris refuses to allow me to select a default ringtone. I can select a ringtone from the list and listen to it, but when a call comes in, I get 2 Step, the first ringtone in the list. I've rebooted and removed the battery, but neither of these fixed the problem. I called Verizon tech support and was told to enter Settings from Apps, which I did and it actually worked...once. Now, it's failing solid.
View 2 Replies
View Related
Jul 3, 2010
I had to do a factory reset on my Eris. Kept getting the "The process com.google.process.gapps has stopped unexpectedly" error and nothing but the reset worked. I "lost" my ringtone app and I SWEAR I saw somewhere that Eris had a default ringtone maker app so there was no need to DL one. Can someone point me in that direction, or am I loosing my mind?
View 2 Replies
View Related
Jun 28, 2010
My default ringtone and notification sound won't stay set after powering off. Anyone have any ideas as to what might be causing this?
View 4 Replies
View Related
Jul 15, 2010
Hey guys, my ringtone keeps changing back to the default ringtone and its really annoying. It happens everyday, and I haven't hooked up my phone to my computer at all. I'm using a song from "my music" as a ringtone.
View 2 Replies
View Related
May 25, 2010
On my Desire I have changed my default incoming ringtone (in Settings> Sound & Display> Phone ringtone, click Ok) and when I go back in to settings the change has been saved, but for some reason when I receive a call I still only get the original impatient 'ringring' tone. The same happens even if I set the tone for a contact.
Has anyone else had this issue and know how to resolve it?
View 7 Replies
View Related
Jan 28, 2012
Is there a way to extend its lenght? No matter how long a ringtone is, the device keeps playing it from beginning as long as it arrives at i.e. 15 seconds (cannot remember the exact time elapsed).
View 1 Replies
View Related
Aug 10, 2010
I accidentally set to select default ring tone and I need to change it back to where I can select the folder. How do I do that?
View 2 Replies
View Related
Apr 24, 2014
I was in the default SMS ringtone settings as I wanted to separate SMS notification tone from the tone used for the other notifications and I accidently it to 'Facebook Pop' tone. Now I don't get the Samsung default 'whistle' tone on my Note 3 that I want and I don't know how to change it back. When I select the 'select ringtone' option just takes me to a memory folder paths and there is no sign of any of the default ringtones anywhere. I just want the factory ringtone back. Why does Google have to complicate things by taking you to the general folder paths just to select a ringtone? How to remove the Facebook Pop tone and get me back to the default whistle tone that I have selected in the system sound settings? There seems to be no way of accessing the device folders which appears in ES Explorer, there are only the external and internal memory folders available, making it impossible to access the default tone directly unless I copy it from the system folder via ES Explorer and paste it to a folder within the internal memory. Why can't Google allow direct access to default tones within the default SMS app in the ringtone selection pane? It seems like an obvious thing to do which the stupidly left out of even the latest OS. I'm running 4.3 Android.
P.S. it seems now that even in the system settings itself in the sound settings the default notification setting takes me to the same folder path rather than before where I could simply select from a small number of preinstalled notification tones. The call ringtones are unaffected and can simply select a ringtone without being taken to any stupid folder paths, but the notification setting is whacked because I dabbled with the SMS app settings. How stupid are the Google Android time, why can they do it as well as Apple?
View 1 Replies
View Related
Jun 4, 2010
I have a lot of music related widgets, however, they are useless when music is not playing. Is it somehow possible (stock launcher or otherwise) to change the current home screen based on whether the music is playing?
View 2 Replies
View Related
Nov 5, 2009
Is there anyway to stop the phone from playing the default notification when you plug it in the to power adapter?
View 12 Replies
View Related
May 1, 2010
How can I set a custom file I downloaded as my default ringtone? I got it off babilo.com and I want to make it my default... But I cant seem to find the song anywhere on my phone to make it my ringer?
View 1 Replies
View Related
Sep 8, 2009
I setup my SoundPool, and load a sound resource as this in onCreate():
soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 0);
soundId = soundPool.load(this, R.raw.edible_underwear, 1);
And then I try to play this sound twice in a onClick(), one slow mostly in left speaker, and one fast mostly in the right speaker:
soundPool.play(soundId, 0.9f, 0.1f, 0, -1, 0.7f);
soundPool.play(soundId, 0.1f, 0.1f, 0, -1, 1.5f);
No sound can be heard. I have fiddled with the volumes, priorities and rates. So far to no avail. Am I missing something obvious?
View 2 Replies
View Related
Feb 12, 2009
there seems to be a dead-lock problem when using sound effects with SoundPool. I was hoping the the problem would be fixed in the new firmware update, but unfortunately, it was not. The application still locks up after couple of minutes when playing sound effects using SoundPool. My application is a game playing a background music scenario with multiple simultaneous sound effects. Any word from devs as when we can expect stable SoundPool would be very welcome.
View 21 Replies
View Related
Aug 22, 2010
What is the Easiest way to stop a soundpool of 4 streams.
mSoundManager.addSound(1, R.raw.svphorn);
mSoundManager.addSound(2, R.raw.svpphaser);
mSoundManager.addSound(3, R.raw.svpwail);
mSoundManager.addSound(4, R.raw.svpyelp);
I need a button to stop all sounds playing @ one time.
View 1 Replies
View Related
Mar 2, 2009
I need a recommendation from someone for the most accurate way of timing SoundPool sounds. I can't loop them because what's desired is not a loop but very accurate (to the ear at least) timing.
View 3 Replies
View Related