alert.setVolume cannot set the master Volume

Hello

In my application I play sounds, but they are very quiet, so that no one can hear these.

alert.setVolume (100) says nothing

alert.setVolume (50) is very quiet...

How can I adjust the volume on the 'master '?

Thank you

Snippet for your refrence:

public static player player;
public String type = "audio / midi";
public String location={"/Resources/Boom.mid"};
InputStream is read;
 
Player = new Player();
LIS = new InputStream();
LIS = getClass () .getResourceAsStream (rental);
Player = Manager.createPlayer(lis,type);
player.setLoopCount (1);

Now you have to start your player like player.start ();

Tags: BlackBerry Developers

Similar Questions

  • Get and set the Master Volume

    My app plays an mp3 file, but it depends on the master volume, can I get the general volume level currently, when the player is playing reset it and change to the normal level later?

    Hello

    In fact I don't know how to set the volume using the waterfall, but I have another way.

    You can use native code

    Try this

    #include "applicationui.hpp"
    
    #include 
    #include 
    #include 
    
    using namespace bb::cascades;
    
    ApplicationUI::ApplicationUI(bb::cascades::Application *app) :
            QObject(app) {
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
        qml->setContextProperty("app", this);
        AbstractPane *root = qml->createRootObject();
        app->setScene(root);
    
        float val = 100; // Volume level between 0 to 100
        audiomixer_set_output_level(AUDIOMIXER_OUTPUT_SPEAKER, val);
    }
    

  • Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."

    Cannot set the restore point with the error "The Volume Shadow Copy service used by the system restore does not work."  How can this be repaired?

    Hi rebick,.

    Try the troubleshooting steps presented by spirit X in this thread.

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

  • Could not set the audio volume on BlackBerry Pearl 8130

    Hello

    All first of all information about the device and the JDE:

    Device: BlackBerry Pearl 8130 (Bell)

    F/w: 4.3.0.66 (Platform 3.1.0.35)

    JDE: 4.3.0.1r

    Our application reacts on the main events of entry of the volume keys and set the audio volume accordingly in increments of 10. While net.rim.device.api.system.Audio.getVolume () works very well and returns the correct value, we are unable to adjust the volume. Adjustment is made through net.rim.device.api.system.Audio setVolume(int volume). Calling the method seems to succeed because there is no error returned. If we call setVolume (90) after that getVolume() return 100 the next call of getVolume() returns 90. However there is no noticeable change in volume. Even though getVolume() returns 0 audio is always heard.

    Play media files is via MMAPI, i.e. javax.microedition.media.Manager and javax.microedition.media.Player.

    Please note that the volume control works very well for BB Pearl 8100 with firmware version v4.2.1.101 (Platform 2.3.0.80) but fails for the above device. Application is signed.

    How is it possible to adjust the audio volume of BB Pearl 8130?

    CDMA devices (xx30) do not properly set the volume if you use the setVolume(int i) function.

    net.rim.device.api.system.Alert.setVolume (int x) is also available.

    Maybe it works!

  • "Windows cannot display the control volume on the taskbar because the Volume control program has not been installed. To install it use Add/Remove programs in Control Panel. »

    missing volume control

    volume control was gone. I tried to go into my control panel to use it, but I get an error that says:

    "Windows cannot display the control volume on the taskbar because the Volume control program has not been installed. To install it use Add/Remove programs in Control Panel. »

    I have lost my Windows XP disc in a move and can't reinstall the file to a disk, how to fix this?

    When you use certain features sounds and Audio devices, you see a message like this:

    Windows cannot display the control of volume on the taskbar because the Volume control program has not been installed. To install it use Add/Remove programs in Control Panel.

    It seems that the c:\windows\system32\sndvol32.exe file is missing.

    This may occur if your antivirus/antimalware application thinks the file is suspicious and quarantines (effectively delete) the file.  You can replace the missing file with a backup copy of the file that is in another folder on your system.

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    Assuming that Windows is installed on your C drive...

    We know that XP keeps copies of critical system files in the following folder:

    c:\Windows\System32\dllcache

    Using the Explorer, search for or navigate to the following folder:

    c:\Windows\System32\dllcache

    Locate the sndvol32.exe file, right-click, choose copy (it copies the file to the Windows Clipboard).

    If your Solution Explorer settings are not set to display file extensions, you will see only a file called 'sndvol32' which has an icon that looks like to the volume control slider (this is the file you need).

    If the file is missing in the dllcache folder, look for a copy of the file in this folder:

    c:\windows\ServicePackFiles\i386

    Browsing from a level in the following folder:

    c:\Windows\System32

    Right-click on an empty area in the window of c:\windows\system32 and choose Paste to paste in the missing file where it belongs.

    Answered in the affirmative if invited to replace the existing file.

    Now try your features sounds and Audio devices.

    Note that run sfc/scannow will not replace the missing file because it is not this that sfc/scannow does.

  • ORA-12054: cannot set the ON COMMIT...

    Hello
    can someone please tell me what am I missing here?
    I can't create a materialized view, but I can't understand why is this?
    SQL> select * from v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    PL/SQL Release 9.2.0.7.0 - Production
    CORE    9.2.0.7.0       Production
    TNS for HPUX: Version 9.2.0.7.0 - Production
    NLSRTL Version 9.2.0.7.0 - Production
    
    
    SQL> r
      1* select master,primary_key from user_mview_logs where MASTER='CIS_CASE' or master='CCR_ACTION_DEF'
    
    MASTER                         PRI
    ------------------------------ ---
    CCR_ACTION_DEF                 NO
    CIS_CASE                       NO
    
    
    
    SQL> r
      1  SELECT a.table_name, a.constraint_name, a.constraint_type, b.column_name
      2    FROM user_constraints a, user_cons_columns b
      3   WHERE a.constraint_name = b.constraint_name
      4*    AND a.table_name IN ('CIS_CASE', 'CCR_ACTION_CASES')
    
    TABLE_NAME                     CONSTRAINT_NAME                C COLUMN_NAME
    ------------------------------ ------------------------------ - ----------------
    CCR_ACTION_CASES               ID_PK                          P ID
    CIS_CASE                       PK_CIS_CASE                    P ID
    CIS_CASE                       SYS_C008496                    C ID
    
    
    
    SQL> CREATE MATERIALIZED VIEW mv
      2    REFRESH FAST ON COMMIT
      3  AS
      4  SELECT c.ID,
      5         CASE
      6            WHEN (c.script_id IS NULL OR c.queue_id IS NULL)
      7               THEN 1
      8            WHEN c.script_id IS NOT NULL AND c.queue_id IS NOT NULL
      9               THEN 2
     10         END TYPE,
     11         c.datum + a.due_time / 24 - a.alarm_due_time_1 / 24 alarm1,
     12         c.datum + a.due_time / 24 - a.alarm_due_time_2 / 24 alarm2,
     13         c.datum + a.due_time / 24 due_date
     14    FROM ccr_action_def a, cis_case c                                  --users u
     15   WHERE NVL (a.queue_id, NVL (c.queue_id, 0)) = NVL (c.queue_id, 0)
     16     AND NVL (a.type_id, NVL (c.case_code_type_id, 0)) =
     17                                                    NVL (c.case_code_type_id, 0)
     18     AND NVL (a.code_id,
     19              NVL (NVL (NVL (c.code_id_4, code_id_3), code_id_2), code_id_1)
     20             ) = NVL (NVL (NVL (c.code_id_4, code_id_3), code_id_2), code_id_1)
     21     AND (c.datum + a.due_time / 24 < SYSDATE)
     22     AND state IN (1, 2)
     23  UNION
     24  SELECT c.ID, 3 TYPE, a.due_date - a.alarm_due_time_1 / 24 alarm1,
     25         a.due_date - a.alarm_due_time_2 / 24 alarm2, a.due_date
     26    FROM ccr_action_cases a, cis_case c
     27   WHERE c.ID = a.cis_case_id
     28     AND (a.due_date < SYSDATE)
     29     AND state IN (1, 2);
      FROM ccr_action_cases a, cis_case c
           *
    ERROR at line 26:
    ORA-12054: cannot set the ON COMMIT refresh attribute for the materialized view

    Vili Dialis wrote:
    Rob, if you have any comments on my last query operation, I would be greatfull.

    Vili,

    You must start with a join view which does not contain any aggregate. Just a join of the ccr_action_def and cis_case. And don't forget to include the two table rowid to make quickly updatable. Then create a full blown newspaper on top of the join mv materialized view and create mv aggregation, selecting in the mv to join.

    Kind regards
    Rob.

    Published by: Rob van Wijk on 14-dec-2009 12:09

    And two boards that are not linked mv:

    (1) as has said, use a.id and c.id in a group by clause for the query itself work
    (2) do not use the string ' 14.12.09", use a date but you compare it with a date. So use: date "2009-12-14'

  • Satellite M100: Cannot set the resolution 1368 x 768 on external LCD screen

    Satellite M100-179
    Graphics - ATI x 1400 card.
    Cannot set the resolution 1368 x 768 on connected usung Sub - D LCD TV Samsung 32R72
    There is no resolution 1368 x 768 in the available resolution list.

    The graphics card hardware support different screen resolutions, but if the driver doesn't contain this resolution of the screen so that you cannot choose it.
    I think so you re not able to choose this special resolution on the external display.

    In my opinion it has nothing to do with the graphics card or with the screen, but only with the graphics driver.

  • Cannot set the time zone of Moscow winter + 3 hours.

    Cannot set the time zone of Moscow winter + 3 hours.
    Set the time zone Minsk 3 after the GPS clock moves forward 1 hour, timezone is set back from Moscow + 4.
    It is an error of your software when you are ready to address this issue.

    Automatic deactivation date & time(Settings>Date&Time...)

  • BIOS HP Compaq Elite (i5-2400 CPU) 8280 cannot set the VT option

    BIOS HP Compaq Elite (i5-2400 CPU) 8280 cannot set the VT option

    found in the security system] [, thanks]

  • ERROR - 1051414 - cannot set the role of group with shared services [30:1101:JNDI error] error.

    Hi all

    I tried provide access to filter the group in both SSP and thru Maxl command but still get the error below. Any experience of this problem? If Yes, please let me know how you solved this problem.


    ERROR - 1051414 - cannot set the role of group with shared services [30:1101:JNDI error] error.


    Thanks in advance!

    Krishna

    Read the support document that I posted the link, prior to changes for openldap ensure you that it is saved.

  • I'm doing slideshows to music with an opening, I would switch to LR, but you cannot set the duration of each slide (in my case the score) based on listening to the music. (In the opening by clicking on the "stopwatch" and pressing enter at each change of

    I'm doing slideshows to music with an opening, I would switch to LR, but you cannot set the duration of each slide (in my case the score) based on listening to the music. (In the opening by clicking on the "stopwatch" and pressing enter at each change of image). Adobe staff question: can I expect to find this option in a future release?

    Hi Pcaubi,

    There is no such updates for the same from now.

    I suggest you to please put in a feature request to: Photoshop community customer family

    Kind regards

    Tanuj

  • Cannot set the configured property "/ Initial.initialServices".

    Hi all

    I'm getting following error.

    05:21:52, 006 INFO [STDOUT] cannot set the configured property "/ Initial.initialServices" atg.nucleus.ConfigurationException: could not resolve the component/com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet

    05:21:52, 013 INFO [STDOUT] * error

    05:21:52, 064 INFO [STDOUT] cannot set the configured property "/ Initial.initialServices" atg.nucleus.ConfigurationException: could not resolve the component/com/progiweb/fbconnect/pipeline/FacebookProfileRequestServlet

    I checked the path of configuration of two components and the structure of the servlet is as below.

    src/com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet.java and src/com/progiweb/fbconnect/pipeline/FacebookProfileRequestServlet.java.java

    For properties files I created them under the path - config/atg/dynamo/servlet/dafpipeline / config/atg/dynamo/servlet/pipeline

    Inside of these I keep the files FacebookAuthStatusServlet.properties and FacebookProfileRequestServlet.properties

    The Initial.properties is as below - config/atg/dynamo/servlet/Initial.properties

    The content of Initial.properties is-

    & initialServices =.

    / ATG/Dynamo/servlet/dafpipeline/FacebookAuthStatusServlet,.

    / ATG/Dynamo/servlet/dafpipeline/FacebookProfileRequestServlet


    Should I have to keep the two pipelines-dafpipeline and pipeline or one of them?

    And my pipeline structure is correct or not?

    How to solve the error above?

    Please help on this!

    Kind regards

    Prateek

    You seem to be confusing core components and classes Java.  They are completely different.  The error message that you get "Unable to resolve component", says that the kernel is unable to find a file of specific properties anywhere in the directories named in your configpath trees.  To be precise, there is no file named /com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet.properties in your config directory.  If I read correctly this conversation, it is because the file with this name is a .java file, not a .properties file.  The two most likely causes of your problem are:

    1. you have a file of properties somewhere that mentions/com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet as the value of something else than $class.  $class is a special case whose value is sought by a Java ClassLoader in the classpath.  Values of the other properties are interpreted as references to the component, and looked up from core in the configpath.

    2. in the directory tree that contains the /com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet.properties isn't in the configpath.  ATG displays the complete configpath during startup.  If your directory is missing, you have may have specified correct information in the entrance of the ATG-Config-path in your module MANIFEST. MF file.

  • Cannot start the master VM once linked clone pool is created

    With the help of ESXi 5.1, I created 3 floating linked clone distinct categories of 10 clones each. Everything works fine until I try to turn on the master after the linked clones are available. I get an error:

    Cannot open disk ' / vmfs/volumes/volume/vm/vm-000002.vmdk' or one of the snapshot disks it depends on.

    He made this 100% of the time. No exception. I manually loaded a basic system of Windows 7 x 64 flat and converted a x 64 and x 32 using the P to the converter V. All systems do exactly the same thing. All files are where they say the man should be.

    I can attach some files are required. Just need help. Destroy my master and create whenever I dial the linked just clone pool seems exaggerated.

    It is not the virtual disk controller that is causing the problem (I just mentioned in order to make you aware of it). What is most likely the origin of the problem is the format of virtual drive not supported (twoGbMaxExtentSparse) which is used for the virtual disk. I suggest that you follow http://kb.vmware.com/kb/2036572 to convert the virtual disk shaped ESXi supported, which should solve the problem. Please keep in mind that this will require free space on the data store (the size of the configured virtual disk size - ~ 233GB).

    André

  • Instructions to set the master password - where is Options?

    I want to set a master password (Thunderbird on MacBook OS X Yosemite 10.10.5).)

    Instructions to begin with 'at the top of the Thunderbird window, click the Tools menu, and select Options.
    but I do not get an Options I can select (see screenshot).

    Clearly I must be misunderstanding something simple enough (I'm new to Mac after using Windows for years). Help please

    _Linux, http://KB.mozillazine.org/Menu_differences_in_Windows, _and_Mac

  • How to set the recording volume in itunes.

    A few songs to read the normal volume in the car. Others, I turn the way car volume up.

    In addition to Sound Check. Have you already discovere, you can change the volume level individually for each song.

    Select the track, command-I to open get the Info window. Switch to the Options tab, and then adjust the Volume slider.

    Not all apps honor this setting, so test with your workflow first, before spending too much effort on it.

Maybe you are looking for