Play a ringtone

In my application (4.6), I just want to play ringtones that exist on the emulator. The file exists in the form

file:///System/samples/ringtones/Tune_FurElise.mid.rem

But how can I play this one? I'm trying

fn = "file:///system/samples/ringtones/Tune_FurElise.mid.rem";
Player player=javax.microedition.media.Manager.createPlayer(getClass().getResourceAsStream(fn),"audio/midi");

but it seems that getResourceAsStream returns null. I guess it's the wrong way to go.

All work of code that shows how to do that would be useful!


Tags: BlackBerry Developers

Similar Questions

  • Disable ringtones?

    My iPad has suddenly started playing a ringtone when my phone rings. There is no option to do nothing the way there are alerts. How can I turn off the ringer? Thank you!

    My guess is that your iPhone / iPad are both connected to the same WiFi network when this happens, and you have "Calls on other devices" lit on the phone (under settings-> phone). Disable calls on other devices on the phone functionality, and you should be all set.

  • Cannot add new ringtones for iPhone 6 s

    Hi all

    Try to add new ringtones to iPhone via iTunes 6s.

    I followed this...

    http://www.iphonehacks.com/2015/05/How-to-set-any-song-as-iPhone-ringtone.html

    - and connected via cable to the lightning.

    But when I dragged the new .m4r to the window of ringtones in iTunes on the desktop - it came in was dimmed with no check - it seems that it did not really. And nothing new appears on the phone

    instead of dragging on the tones folder, I usually play the ringtone after what I did to a m4r, this way file, it will automatically to your tone folder in iTunes.

    the ringtone should play in iTunes.

  • How can I get iPhone play sound of favorite when text DND?

    Hello

    How can I get iPhone play sound of favorite when text DND?

    It plays the ringtone for a call when DND of a favorite but not identified a favorite texts me

    Thanks in advance

    You do not have. Notifications for all the messages are deleted when DND is turned on.

  • assignment of ringtone by program

    Hello

    Is it possible to set the ringtone progammatically for some contacts in the address book.

    If no incident based support control is useful in this case

    You can try to play the ringtone for incoming calls to work around the problem.

  • BlackBerry smartphones helps, vibrate mode and ringing continues to play

    whenever I put my phone vibrate only mode, it still plays my ringtone after.

    That's my General and specific ringtones.

    so, im always silent use in place and lack of calls or texts.

    I had the same problem since I first storm last November. After many calls to Verizon and visits to several Verizon stores, I finally understood that I had to fix it myself. I created a sound custom profile with all the parameters that I would have expected the 'Vibrate' profile would have provided with the phone. When I use my custom profile, custom ringtones vibrate just like any other ringtone. If you need help setting up the profile, please reply to this message.

  • Phones ringtones smart blackBerry suddenly all failing same 3-note tone and won't let me change any of them. Help!

    Hi - I turned on my BB Storm 9530 (w/.75 update installed over a week ago) today, and when the emails / calls started coming, I learned to my dismay that ALL on my Storm now default to the same note played three times, looks like someone typing press the same piano three times.  I go to my sounds to edit and my phone and various emails have different ringtones listed, but when I click "Try It" on the edit page for ringtone, all I hear is the same monotonous notes 3 regardless of the ringtone is selected.  I tried selecting other ringtones by default (I don't have those personalized yet) and economy, but the result is the same; I can't have my phone or e-mail accounts to play unique sounds now.  What is new as of today, and the only thing 'new', I did it yesterday is finally put some music files on my Storm and asks him to warn me when I connect it to my pc, in case I want to use the mass storage mode.  I noticed that you are trying to use my pc system tray icon to release the storm after moving media files gives me a "(Busy--essayez à nouveau plus tard) while I had to stop the pc with the BB still attached."  But I tried to change the ringtones when they are disconnected, and nothing changes.  Does anyone have an idea how I can regain my ability to select & play different ringtones?  I do not see why the turn on the storage capacity of the media would cause this problem, unless I stumbled upon another bug of Storm.  Can anyone help?  I really need to know when I get a call or an email.

    THX!

    Drew

    Hey, thanks so much for answering.  I actually had already implemented some of the ringtones by default system for my family members and e-mail accounts, so it wasn't the problem.  They were working on Monday.  By my original post, as of yesterday, any ringtone was entered for an item, all of the pieces read all of a sudden the same monotonous alert 3-note, and no amount of attempts to change a ringtone fix it.  I managed to stop yesterday afternoon at a Verizon Wireless store.  The young woman at the counter suggested I remove the battery, wait 30 seconds, then reinsert it (a "fix" I seem to see on a lot of forum posts!).  Of course, forcing difficult starting restored power to the storm actually play different ringtones that I had associated the various names/emails.  True, I had to reset my desktop wallpaper and preferencesoot after the hard b keyboard, but nothing else was lost, and I am happy to have different ringtones works again.  Of course, I would like to know why the ringtone feature suddenly stopped working properly yesterday.  I like a lot in the storm, but it is very buggy and patches do not appear to come often or quite quickly.  We will all see over time, I guess... Thanks again for writing.

  • My BB 8520 blackBerry smartphones does not ringtones

    Yesterday's leave suddenly my BB has stopped playing some ringtones and is also not play video files. When I try to play any ringtone manually, an error which says error playing with a message "an error occurred while trying to play the media.

    I also noticed while taking photos, I'm not able to zoom through my trackpad and am unable to take a zoom or close-up picture

    This error message can happen on my BB device and how can I solve this problem?

    Pls help

    Hi and welcome to the forums!

    First thing to try when your Blackberry is not working properly.
    No data will be lost when you do the following: remove the battery while the device is activated.
    Remplacer replace after one minute, let the device reboot 1-3 min, see if the problem is corrected.
    Thank you

    Bifocals

  • Text your ceased to work on the iPhone 6.

    I have a tone custom for text messages I've had for several years. It suddenly stopped working and I cannot understand why. The strange thing is that it works normally in iTunes on my computer and it is synced on my phone. In fact, other custom text tones are still working as usual. It's just what I've always used. Can anyone work why this might happen?

    When I go into the settings in the tones, I can type others and they play but the one I've always used is silent when I press on it. I fist he discovered when I found text messages in waiting for me but never heard of the alert. When I go to that tone in iTunes on my computer, it plays as usual. He made me very puzzled. It's a great tone and I don't want to lose him.

    Hello marc-leon.

    Thank you for using communities Support from Apple. I know have a problem with a tone alert on your iPhone, it's not what you expect. If I understand correctly, you may not use or play a ringtone on your iPhone that worked in the past, and the same file in iTunes still works. Good news is that you should be able to use iTunes to fix this.

    First, connect your iPhone to iTunes on your computer. Then use the synchronization options to remove this alert sounds on your iPhone by unchecking the box next to it. Click on the button apply, then confirm that the tone is deleted from your iPhone once the synchronization is complete. Once the tone is removed then it re - sync from iTunes on your iPhone and try it again on your iPhone.

    Sync your iPhone, iPad or iPod touch with iTunes on your computer through a USB port

    See you soon!

  • speaker question

    When I play my iphone (marimba, xylophone and opening) product phone ringtones a crackling sound... my version of ios is 9.3.2 I want to ask if the speakers are very well or not? And I played same ringtones on my friend's device, but its speakers of the device are perfectly well... If someone having the same problem please answer... Thanks in advance

    If someone has the same problem does not help your. If you play music or other sounds, speakers have this crack? If you want Apple to look at the device, you can make an appointment at the Genius Bar at the Apple Store nearest to looking at it. If there is a problem with the unit, they can explain your options.

  • No audio downloaded videos

    Hi, I'm unable to watch videos downloaded to my pc from my phone. The video plays well, but there is no sound... help! Also, I'm a techno total phobe, then laymens terms please :D If I right click on the file to bring up the properties it says that it is a 3GPP.

    Hello

    1. what application you use to play these videos?

    2 - is the question confined with any specific video?

    The .3GPP is a type of media file that is not supported by the player, unless you acquire additional software:

    3GPP multimedia. Ringtone/video files with .3gp file name extensions are usually present on Windows Mobile devices. You can download DirectShow on Internet filters that allow you to play the ringtone file in the drive. Remember, however, that some filters can introduce instability with your computer or programs in general. Ensure that the filters are a reliable supplier of software before downloading.

    You can use your favorite search engine and download DirectShow filters for your computer. You can also search the Internet for some third-party software using your favorite search engine to convert the file PPM 3 or 3 players GP in a wmp file and install it.

    NOTE: using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information is useful.

  • Z5 Premium - low volume in anticipation and calls incoming, but not in its selector

    I tried everything regarding this issue, but I can't find a solution.
    It also happens in safe mode.
    It has been like this since I got it several months ago.

    When I go to 'Sound & notification' and adjust the ringer volume to full, the top speaker sounds just.
    This is the same volume when I get calls.

    But when I go to 'Ringtone' and 'Sound picker' and play any ringtone, the top speaker emits much higher.
    It's the volume that I want when he calls.

    Even in the "Diagnostics" speaker emits as it should.

    So clearly the speaker works fine, but it's as if he plays the ringtone of a different medium or something.

    I have the latest update on the phone.

    Any help would be greatly appreciated.

       

    If someone else wondered about the same problem, here is the answer I got from Sony.

    * "The ringtone will not play with a full volume of the earspeaker, compared to when you listen to other music playing other media." "This avoids the volume was too loud when you hold the camera in your ear.*.

    And if anyone knows a work-around, I'll be glad to know.

  • Switch off time sound appeal

    When I press the off button, it plays the ringtone for calls. How to disable this option?
    It is very annoying.

    You have enabled accessibility shortcuts:

    https://talk.sonymobile.com/T5/Xperia-Z5-Z5-compact-Z5-premium/power-button-plays-ringtone/m-p/10763...

  • I have video saved in my phone as .3GPP and unable to pay in my PC. How to convert it into a common format so that I can share it with my friends

    I veod .3gpp format how to convert it into an appropriate format

    Hi Das,

    Thank you for using Microsoft answers Forums!

    Can I play this type of file in Windows Media Player?

    The .3GPP is a type of media file that is not supported by the player, unless you acquire additional software:

    3GPP multimedia. Ringtone/video files with .3gp file name extensions are usually present on Windows Mobile devices. You can download DirectShow on Internet filters that allow you to play the ringtone file in the drive. Remember, however, that some filters can introduce instability with your computer or programs in general. Ensure that the filters are a reliable supplier of software before downloading.

    You can use your favorite search engine and download DirectShow filters for your computer. You can also search the internet for some third-party software using your favorite search engine to convert the GP 3 or 3 GP player file to a wmp file and install it.

    NOTE: The use of third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information was useful.
    Let me know if it worked.
    All the best!

    Thank you and best regards,
    R uma - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • .3gp?

    Need help with a video sent from a phone .3gp

    Fred Jr,

    http://www.Microsoft.com/windows/windowsmedia/KnowledgeCenter/mediaadvice/0071.mspx
    3GPP multimedia
    . Ringtone files with .3gp file name extensions are usually present on Windows Mobile devices. You can download DirectShow on Internet filters that allow you to play the ringtone file in the drive. Remember, however, that some filters can introduce instability with your computer or programs in general. Ensure that the filters are a reliable supplier of software before downloading.

    You can also download a third-party media players who will play this type of file, but again, be very careful to download anything that's out of the Internet and download sources and reliable companies.

    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Thank you

    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for