Play simple/beep in version 5.0.0?

Can someone help with the code to play a simple beep/version 5.0.0?  I have acquired a method to alert to work but it comes through the phone's speaker and you can not hear it.  I need to be able to direct sound to the speaker.  I saw this post, but it does not work in 5.0.

Kind regards

Scott

I couldn't quite strong tones, so I just downloaded a few mp3 beeps and they are much stronger.  Not sure if anyone else has come across this, but here is the code I used, which checks if the BB is to vibrate or silent mode before playing the beep.

//BEEPS
try {

    if ( NotificationsManager.isVibrateOnly() || (NotificationsManager.getMasterNotificationVolume() == 0) ) {

        if (Alert.isVibrateSupported() ) {

            Alert.startVibrate(500);
        }//Alert.isVibrateSupported()
    } //NotificationsManager.isVibrateOnly()
    else {

        InputStream is;
        if (pass) {
            is = getClass().getResourceAsStream("/beep.mp3");
        } else {
                    is = getClass().getResourceAsStream("/beep-error.mp3");
                }
                Player myPlayer = javax.microedition.media.Manager.createPlayer(is, "audio/mpeg");
                myPlayer.realize();
                myPlayer.prefetch();
//              VolumeControl vc = (VolumeControl)myPlayer.getControl("VolumeControl");
//              vc.setLevel(100);
                myPlayer.start();
            } //else - not in vibrate only mode

        } catch (MediaException me) {
            System.out.println("Media/Tone Media error: " + me.toString());
        } catch (IOException ioe) {
            System.out.println("Media/Tone IO error: " + ioe.toString());
        } catch (Exception e) {
            System.out.println("Media/Tone error: " + e.toString());
        } //catch

Tags: BlackBerry Developers

Similar Questions

  • How can I configure firefox to play a beep sound when my yahoo or gmail mails to the?

    How can I configure firefox to play a beep sound when my yahoo or gmail mails to the?

    Hi, you could try the add-on x - notify .

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • Play a beep without mp3 file

    It is possible to play a beep on the Tablet without any music file?

    Beep, I hear a noise, under Windows (in C++), I can play with the function beep (frequency, time) (using windows.h)

    Of course you can.  There's a SampleDataEvent allowing you to spit raw samples to the speakers (more or less).  See the example in the docs.

    Depending on what you're really trying to do, however, there may be better options.

  • How can simple Backup 2002 Version by Veritas Question, I get DLA for this for my Win 7 32 bit?

    At the time where I got a Win XP 32 bit computer I had downloaded an item called "Simple Backup' nice by Veritas... a pure program so I can save my photos on a CD. I'm trying to get these pictures on the CD and I'm running out of problems with it. Is there a certain driver as a DLA I can get to help me with this problem? There must be a way to get pictures on the CD. I thank very you much for your kind reply. BTW, I received this program of PC World online. I think it was in 2003 or 2004.

    Hi, Deb

    Im having the same problem with Veritas, I too know more have windowXP, and my photos are held hostage on my CD was recently changed to Windows 7 Ultimate and I tried and tried to recover my photos, please can you me the exact site for the Stomp of Simple Back Up version please, I don't want to lose all those memories.
    Cynthia
  • With more than 2 GB videos for veiwing h264 problems, they won't play in windows or version mac et seq., less than 2 GB, they play very well.

    I work for a video company, video encoding, the only problem we have is Firefox plays videos not encoded as H 264 (1080) greater than 2 GB, because they do not play. I tried the two latest version 9.0.1 in mac and windows and no change. In Internet Explorer, Chrome, the video plays well. Is there a file limit in Firefox? I read somewhere else that FF also has problems downloading files of 2 GB, do not know who is bound. Any help would be appreciated.

    Firefox does even not play H264 content by default. For HTML5 video, it will play OGG / Theora and WebM, but a plugin is necessary for the H264 content.

  • Reconstruction of android app will trigger the "app update" on play store using phonegap version?

    IM wondering if what follows will work and allow the application to update properly on peoples phones:

    1. build a new application on construction of pit phone and 'Send' to play store
    2. Remove the build phonegap app
    3. a few months later to make minor changes to the code, create a 'new' app on phonegap build the code
    4. resubmit the application as an update of store to play.

    Sorry if I don't know how to explain myself, im wondering if I do the above process will be android/google see it as a NEW application or an update to an existing application.  The reason why I wonder is phonegap build seems to give a 'App ID"and I don't know if it of just a thing phonegap or is somehow transmitted to google/android.

    Thank you!

    As long as the application id is the same, the correctly incrementing version numbers, and even signature keys, game store he sees as an update.

    For the app id, it is a part that you set in the config.XML, as well as lots of other information on your application. For a help authoring config.xml file, you can try my ConfiGAP tool.

    Chris

  • Windows 7 SP1 w/IE 11 freezes, slow performance with switching webpages, downloads, games run very slowly and when to play simple games (for example, CandyCrush Saga) it ignores the graphics and music.

    I have an older Toshiba Satellite laptop I found that, after buying new laptops, I return to my only older because of its speed of travel from site to site, download and never had any problems with games.  I was running Windows 7 Home Edition, IE 9.

    About a year ago, I decided to upgrade my Windows 7 Home Edition to Windows 7 Professional and updated my browser IE 11.  Laptop still has a large.

    Then about 6 months ago I started to receive messages when you enter a Web site that I need to install Flash Player to view the page.  I checked my modules and Shockwave or Flash Player have been activated and would download it again to display the Web site (which I had already visited several times without any problems).  This has happened on several different sites.  Then I started to receive messages that I needed to upgrade my IE8 browser to a newer version.  I checked HELP to make sure that I still installed IE11 and I did it, I started getting these messages more often then I went to the aid of Microsoft Office on what to do if your Web pages telling you to upgrade.  Basically, IE11 is reset or uninstall IE11.  Reset is not good so I tried the method of reinstallment.  I uninstalled IE11, went to the download page for Microsoft IE11 and proceeds to download IE11.

    I saw a message that I couldn't download IE11 because I need to Windows 7 SP1 or later or Windows server 2008.  Then, I went to Microsoft requirements for the installation of Service Pack 1 for Windows 7 and follow-up procedures one (i.e., uninstall Adobe Acrobet, disabling Microsoft Security Essentials and Windows Defender and firewall, etc.) and after the installation of SP1 for Windows 7, followed all procedures to know what to do after the installation of SP1.  Downloaded all the updates (which were more than 120) restarted and was satisfied with fluent how my laptop worked once more.

    After a week, I noticed my phone to talk more and more to load pages and would begin to get Windows Explorer "unresponsive".  It started with almost everything I opened and I tried to edit Web pages or click icon to redirect me to another window, I kept receiving "not responding".  Rose (Microsoft), what to do and monitoring tools to try to fix the problem.  Initially, the problem was to find for a few hours, then starting upwards.  After a few days, my laptop almost took 30-45 seconds to switch between the tabs or windows.  After a search through questions and answers in the Microsoft community and Microsoft Web pages, the bottom line was reinstall Windows 7 SP1.

    Yet once, uninstalled and reinstalled Windows 7 SP1 and again ran perfect for a few days.  I turned on computer laptop yesterday and noticed that it took a long time for the upcoming Windows logo and has a black screen for a few seconds before the logo appears.  Of course, out of nowhere, I went to IE clicked icon and took forever to get to Yahoo (which is my predefined Web page).  Each page, I'm going to again is freezing, "not responding" and very slow operation.

    It is so frustrating because I added not all programs at all.  I am running IE11, Microsoft Security Essentials, and that's all. Outside of Windows Defender, firewall, Explorer, Media player, etc..  Microsoft Security Essentials (I did a full scan) has detected no viruses whatsoever and I 264 GB 285 GB free on my C: drive.  Therefore, there is no problem with the free space.  I have deleted the old files, temp files, analyzed and defragmented my hard drive and am just lost as to what is the cause.  All my drives are underway and have no conflict with all devices.  If I go down my Windows Professional so I will not be able to download anything higher than IE9.  I love IE11 and am happy with Win 7 SP1 if only he would stay longer than 3 or 4 working days.

    Do you have any suggestions?

    Hello Karen,

    Please run a scan with the following programs to see if your computer is infected by a piece of malware or a Trojan horse:

    https://www.Malwarebytes.org/

    http://www.bleepingcomputer.com/download/adwcleaner/

    http://www.bleepingcomputer.com/download/junkware-removal-tool/

    Malwarebytes will be produced a journal, please can post here the link to it? Navigate to: C:\ProgramData\Malwarebytes\Malwarebytes Anti-Malware\Logs and upload the logs to Ondrrive, which was the date of when you did the scan.

    For OneDrive help

    http://Windows.Microsoft.com/en-GB/Windows/Outlook/sharing-with-onedrive

    Start your computer in safe mode and see if your computer is always freezing.

    http://Windows.Microsoft.com/en-GB/Windows/Start-computer-safe-mode

    Ways to improve the performance of your PC.

    http://Windows.Microsoft.com/en-GB/Windows/improve-computers-performance

    Thank you.

  • MEDIA PLAYER for .mp3 files and download and play .asx files old version of the weekly radio program

    I quite often download or listen to a radio show which is broadcast live every Sunday morning and the program is available to download (mp3 file) or listen to (asx file) until the new program is broadcast a week later.  I have rarely listen to the program when it is broadcast live, but sometimes listen live on other programs of that station with no problems.

    Last week I downloaded last week program and everything was ok.  Today, I downloaded program yesterday (February 24) and he started to play with an introduction to the program of the weeks previous (February 17).  I asked a friend to try on his computer and he managed to download the latest program with no problems.  So I've established that the radio station is not at fault, but there must be a problem with my Media Player.

    So far, I updated Windows Media Center the default player for each type of file (with file association) and it did not work, I followed by assigning Windows Media Player and that had no effect either.  I deleted the files downloaded after every attempt to avoid the player pick up the old file.

    Is the association of file replace Autorun settings?

    I use Firefox as my browser but you have tried Google Chrome, and the result is the same, IE. last weeks program times.

    I don't know what else to try so would appreciate your help.

    Hello

    Thank you for your response and I am sorry for the late reply.

    Turn off and turn on the feature in Windows Media Player, turn on or off.

    (a) click the Start button, select Control Panel, click programsand then click Windows turn on or off features. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

    (b) to enable a Windows feature, select and expand the functionality of media, check the CheckBox next to the Windows Media Player. To turn a Windows feature off, clear the check box. Click OK.

    Later, turn it on and check if the problem is resolved.

    For more details follow the link below.

    Turn on or off Windows features

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-features-on-or-off

  • Google Play In - app billing Version 2 will be shut down in January 2015

    Hi, people

    I received the email below from Google. Adobe is following this update? What I have to do with anything?

    Hello

    From January 2015, we will finish in favour of the Version 2 In - app billing API. After this date, users are no longer able to make in-app purchases using your application until you upgrade your application to use the API Version 3.

    The list below contains the applications that we have detected who had a transaction on the API v2 in the last 3 months. This list may contain applications that you have already updated to version 3.

    air.com.editoraconfianca.revistacartacapital

    We recommend that you migrate your implementation of version 2 to version 3 as soon as possible in order to avoid any disruption your monetized app for the above applications. For applications in this list that have already been updated, please check your implementation.

    You can consult the following resources for more information:

    Concerning

    All DPS apps using the native Viewer Android already use v3 for billing. Historically, we never used v2 with the native application.

    Neil

  • Devloper (.ipa) application created to test, but I can't transfer edition simple app to version update

    Hello

    I went through the process of creating the app developer and distribution. I wanted to test the app distribution before putting on the shop online. You must use a license "Integrated single edition App" of Adobe to create the application developer and distribution.

    Once tested, we found a small error. But once I rebuilt the app to create another file to developer to test, I found I could not use the same number series unique edition App, or transfer, or even delete the original file and try again.

    It seems a little harsh that the process to create a test file, but if you use a single edition you cannot change anything at this time there anyway.

    Is there a way to get around this?

    Concerning

    Contact the prouduct support and ask them to restore the license for you. Or better yet sign up for creative cloud, which gives you the ability to create unlimited unique edition applications as long as you keep your membership.

    Neil

  • F.34 Insyde bios version causes loud beep on startup

    I have a hp laptop AMD E300 APU 6 GB memory 64-bit computer Windows 8 2000

    Just, I flashed the Insyde bios with such F.34 version recommended by the automatic Hp assistant.

    Everything seems to work just fine, but when I turn on get a beep very strong after the post and before he asks for a password.

    I allows me to raise less than the power tonic simple beeps and walked if there is any way I can adjust the position after a beep?

    Thank you

    BIOS F.25 should be the old BIOS version before this update.

    Download the BIOS from the link below and run this file to the system in BIOS previous flash.

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-116416-1&cc=us&DLC=en&LC=en&OS=4132&product=5309522&sw_lang=

    Once the old BIOS is back, check that the beep is back to its usual volume.

  • play a sound instead of a beep?

    I use a script I found on the Internet for a game of drag-and-lock. At the end of the game, if all matches are completed, the Director plays a "beep". I would change this "beep" sound different (one sound file "delirious" in my cast).

    Here's the script:

    on checkGameDone
    done = TRUE
    Repeat with i = 6 to 10
    If (sprite I) .loc <>sprite (sprite (i) .pLockToSprite) .loc then
    done = FALSE
    end if
    end repeat
    If done then beep()
    end

    I'm sure it's something relatively easy - I'm guessing that some changes to the line "if done then beep()", but I don't know what exactly I would put there instead.

    Thanks in advance!

    Yes, it's quite simple. Here's what it might look like:

    If done then sound (1) .play (member ("cheering"))

  • Why can't load the free version of the monopoly game? I played monopoly for days and now it will not load.

    I've been playing pogo monopoly free version for days and now it will not load. What can I do?

    Hello

    1. don't you make changes on the computer before the show?
    2 is the issue confined to monopoly?
    3. you receive an error message?
    4. How do you try to play the game?

    Method 1:
    Perform a clean boot and check if a third-party software is causing the problem.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: After the adventures of shooting set the computer to start as usual by performing step 7 above of the Knowledge Base article.

    Method 2:
    You can perform a system restore and see if it helps:
    http://Windows.Microsoft.com/en-us/Windows7/products/features/system-restore

    Method 3:
    If you try to play the game via Internet explorer, then you can try to reset Internet Explorer and check.

    Reset the Internet Explorer settings and check.
    NOTE: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.
  • I can't play videos from a simple site like CNN - HELP / Windows 8

    Hello

    Some settings have been changed on my computer.  I don't know what I did.  I upgraded to 8.1 to see if it would fix the

    problem of not being able to play simple video on cnn.

    Whenever I try to read the CNN video, it says: "cannot display the content checking internet connection.

    It is not a problem with internet connection, otherwise I would not yet be able to get on CNN.

    Why I can't play video?

    Help, please.

    Do I need Adobe? Flash?  I have no idea what happened.

    Thank you

    -j

    I would try first just reset your Internet Explorer, it can probably solve the problem.  Here's how:

    How to reset Internet Explorer
    http://support.Microsoft.com/kb/923737

    Since you are using Windows 8.1, you will need to use the "manual" section of these instructions.

  • 09.0 "NVIDIA Windows Kernel Mode Driver display driver, Version 209.01 unresponsive and has successfully recovered".

    "NVIDIA Windows Kernel Mode Driver display driver, Version 260.99 stopped responding and has successfully recovered." My screen, hang up, then flashes, then turns off, then comes back on, the same month so much MORE Simple ERROR CODE? How do I stop this? With a SIMPLE ANSWER! (BUY A MAC)

    "It is not a true crash, in the sense that the blue screen was launched only because the combination of material and video driver video was to be insensitive and not because of any exception processing synchronous".

    Since Vista, the components of "Timeout detection and recovery" (TDR) of the subsystem video OS have been able to do some really impressive things to try to find issues that would have led to the earlier OS like XP to crash.

    As a last resort, the TDR subsystem sends a video driver command "Please restart you now!" and wait a few seconds.
    If there is no answer, the BONE concludes that the combo of driver/hardware video has really collapsed in a heap, and it fires at this stop 0 x 116 BSOD.

    If playing with video driver versions did not help, make sure that the box is not overheated.
    Try to remove a side panel and a fan of big sector directly to the motherboard and GPU.
    Run it like that for a few hours or days - long enough to check whether the cooler temperatures make a difference.

    If so, it could be as simple as dust accumulation and inadequate cooling afterwards.

    I download cpu - z and gpu - z (both free) and keep an eye on the video time

Maybe you are looking for

  • Satellite Pro L300 - multicolored horizontal lines

    The screen of my laptop began to have multicolored horizontal lines flickering on her.I shut it, waited a bit and then he turned his back and it was worse. I'm afraid his crashed, what can I do?

  • Re: Are the XP drivers available for Satellite L300D

    Hello I wan't by me a Satellite L300D.My question is: are there at - it all XP drivers avaible? I need to install XP, because I use some programs only run under xp. Thanks for help PS: I hope you can read my question, besause I am from Germany and my

  • iMac continue to seek wifi addresses

    iMac late 2012 O SX 10.11.2. My iMac doesn't stop looking / searching for wifi addresses, please see photo: Once, once the search - although I'm connected to the same wifi address. Thank you.

  • Software Windows not genuine even if bought new at HP in the trustworty shop

    I read a few questions about this already but not not yet found a good answer.I bought a new laptop about two years ago in a good shop in the United Kingdom (PC World).He came with preinstalled software and works since then.Now, I get this message th

  • find the maximum correlation coefficient

    Hello I am able 2 analog signals simultaneously from the DAQ 9233 module. Whenever there is a trigger, my DAQ will gather X number of samples from the analog module and a cross on the data correlation analysis. My question is how can I get the maximu