How to detect the device profile

Hello

I want to know if its possible to know the current profile of the BlackBerry device. I want to know if the device profile is set to vibrate. Is it possible (API) that can be used if the device profile is vibrate or strong?

Is it possible to play the sound in my application when the device profile is silent?

P.S. It actually makes a lot of sense that there is no way to know the current profile as a single number or a text string. That's because a notification profile can be customized very detailed by the user (on the base by source) and so it is technically impossible to summarize all these customizations in a single number. In addition, profiles can be cloned and copied, turning the profile index in a not so useful concept.

I guess that the isVibrateOnly and getMasterNotificationVolume methods are a first step in a middle ground between too little and too much detail detail. These two parameters describe the current profile using a small set of useful applications user-model-relevant parameters to decide what to do. Ultimately, most users really care only if there is strong sound notifications issued or not, if virbrate notifications are enabled and if the LED notifications is enabled.

Tags: BlackBerry Developers

Similar Questions

  • How to change the device profile.

    Hi all

    How to change the device profile. I mean from "Normal" to "Enough" or part of the profile.

    Can someone help me in this?

    -Shekhar.

    It is not possible by programming

  • How to detect the DNS server using the device is

    Hello

    What is the means of detecting the device of a BB of DNS server uses at present, whether on wifi, plan data (cellular network), connected to a BES Server?

    Thank you

    You can probably use Network Status BPS:
    https://developer.BlackBerry.com/native/reference/core/com.QNX.doc.bps.lib_ref/topic/manual/netstatu...

  • How to access the current profile

    Hello

    Can someone guide me how can I detect the current profile in the BB device and get its information? To be more specific I want to be able to react to an event according to the current profile. For example, I want to play the current ringtone every day at 12:00 or if the device is vibration mode I want to vibrate!

    Is this possible? How?

    Thanks in advance.

    Discuss a question on the selection of a file to read here

    Therefore, there is no elegant way to call the embedded browser to select a file.

    Instead look at fileexplorerdemo that comes with JDE samples and implement your own features to select a file that must be read.

    Smart phone BlackBerry has two types of memory. Internal memory and microSD card memory.

    You can store ringtones in the memory of the device and to the memory of the micro-sd card. And you can assign a ringtone to a contact in the memory of the device and micro-sd card.

    Ringtones on microsd card folder: BlackBerry/ringtones

    Folder of the ringtones in the device memory: host/user/ringtones

  • How to detect the window closing event and to do some tasks before leaving

    Hello

    Someone knows how to detect the window closing event and to do some tasks before leaving?

    Sridhar

    Structure of the event allows to detect the window closing event. In the structure of the event,.

    Select this VI-> close round table for this task. See attached picture.

  • How to find the device ID?

    How to find the device of my CAN ID card and RIO (or card for something else)?

    I use MAX 4.5 and LabView 8.6.

    Thank you.

    Open MAX and go to the section:

    My system > devices and Interfaces > NOR-DAQmx

    It should list all your DAQ devices and say something like

    DAQCard-xxxx: "Dev 0.

    DAQCard-xxxx: "Dev 1.

    etc.

    Just look at your device

  • How to detect the sign of a number?

    I output which gives the number of negative or positive. My problem is how to detect the sign of the Boolean number and output? For example if the input number is negative as - 23.11 I want to output the value false and if the number is positive as 17.99 I want to output true.

    T H A N K S!

    Test if the number is greater than or equal zero.

  • How to use the device as a simulator.

    Hi all

    Can someone tell me how to use the device (with my development pc) as Simulator.

    Whenever I need to check the appilcation in device of signed files .cod that is compiled in the Simulator.

    Because I got the outofmemory error in the device rather than simulator.

       

    Thus, any solution which signed without how can I check my direct request to the device itself. Any setting in preferences or etc...

    Thank you

    Tejas

            

    The only way you should not sign the cod is if no controlled classes/interfaces are used. The easy way to find out is to open the SignatureTool and see if your application requires signature. Otherwise this says icefrost1 's good enough solution.

  • How to detect the key ALT pressed in os7

    Hai,

    How to detect the key ALT pressed in Os7...

    Can I use the source for os 7 as below? ,

    protected boolean keyStatus (int keycode final, time final int) {}

    If (Keypad.key (keycode) == Keypad.KEY_ALT) {}

    ...

    Returns true;

    } else

    Return super.keyStatus (keycode, time);

    }

    and also I want to know which is the return of this method? In detail
    How to detect the other touches also?
    What are the updations or changes in the code, on os6 os7?

    KeyCode is a bit model, if you use "is" to compare you won't get accurate results, you should use the operator '& '.

    See
    http://supportforums.BlackBerry.com/T5/Java-development/detect-ALT-and-shift-key-clicks/Ta-p/444976

  • How to get the device Diagnostic report?

    Hi guys.

    Do you know how to get the device Diagnostic report?

    Is this possible on a Simulator?

    Thank you.

    Hi guys.

    I found the way how to get.

    It's easy.

    In order to get the diagnostics test report, go to Options / settings-> Network Mobile-> select "diagnostic test" in the menu-> then 'run '.

  • How to get the device model, for example app works on PlayBoook or BlackBerry 10?

    How to get the device model, for example app works on PlayBoook or BlackBerry 10?

    You can use this class: http://goo.gl/GtMLP for information on devices

    something like this:

    String myDeviceModel = android.os.Build.MODEL;
    String myDeviceBrand = android.os.Build.BRAND;
    String myDeviceDevice = android.os.Build.DEVICE;
    
  • How to detect the number of created quickobjects

    How to detect the number of quickobjects created? quickobject are quickbox2d.

    Basically, I have a timer that will countdown to 4 seconds and it will create a falling ball, it will get removed when she falls down. However, I want only there so that if more than 5 bullets are in step, it will cease to create until it is less than 5 to start creating some balls again. Is there a way I can do?

    It's the timer to create the ball

    If (! _ballCreation_timer) {}

    _ballCreation_timer = new timer (4000);

    _ballCreation_timer.addEventListener (TimerEvent.TIMER, _onBallCreationTimer);

    }

    _ballCreation_timer. Start();

    Function which create the ball based on clock

    function _onBallCreationTimer (e:TimerEvent): void {}

    _doCreateNewBall();

    }

    function _doCreateNewBall() {}

    _ball_quickobject = sim.addCircle ({x: PHYSICS_SCALE * (960), y: PHYSICS_SCALE * (10), RADIUS: 0.5, draggable: false});

    MAKE A LIST OF BALLS

    _balls_array.push (_ball_quickobject);

    }

    This is the part where if the table (QuickObject) ball falls down and are destroyed

    addEventListener (Event.ENTER_FRAME, _onEnterFrame);

    DRAW EACH BALL FALLING OUT OF THE SCREEN

    function _onEnterFrame (aEvent: Event): void {}

    for each (var quickObject: QuickObject in _balls_array) {}

    BALL FALLING OUT OF THE SCREEN?

    If (quickObject.y / PHYSICS_SCALE > 1080) {}

    _doHandleBallOffScreen (quickObject);

    }

    }

    }

    DESTROY THE BALL FALL OFF THE SCREEN IF

    function _doHandleBallOffScreen (aQuickObject: QuickObject): void {}

    DESTROY THE OBJECT

    aQuickObject.destroy ();

    REMOVE FROM THE CUSTOM TABLE

    _balls_array.splice (_balls_array.indexOf (aQuickObject), 1);

    }

    check the length of _balls_array.  If it is greater than 5, do not create another bullet:

    If (! _ballCreation_timer) {}

    _ballCreation_timer = new timer (4000);

    _ballCreation_timer.addEventListener (IMER TimerEvent.T, _onBallCreationTimer);

    }

    _ballCreation_timer. Start();

    Function which create the ball based on clock

    function _onBallCreationTimer (e:TimerEvent): void {}

    _doCreateNewBall();

    }

    function _doCreateNewBall() {}

    If (_balls_array.length<>

    _ball_quickobject = sim.addCircle ({x: PHYSICS_SCALE * (960), y: PHYSICS_SCALE * (10), RADIUS: 0.5, draggable: false});

    MAKE A LIST OF BALLS

    _balls_array.push (_ball_quickobject);

    }

    }

    This is the part where if the table (QuickObject) ball falls down and are destroyed

    addEventListener (Event.ENTER_FRAME, _onEnterFrame);

    DRAW EACH BALL FALLING OUT OF THE SCREEN

    function _onEnterFrame (aEvent: Event): void {}

    for each (var quickObject: QuickObject in _balls_array) {}

    BALL FALLING OUT OF THE SCREEN?

    If (quickObject.y / PHYSICS_SCALE > 1080) {}

    _doHandleBallOffScreen (quickObject);

    }

    }

    }

    DESTROY THE BALL FALL OFF THE SCREEN IF

    function _doHandleBallOffScreen (aQuickObject: QuickObject): void {}

    DESTROY THE OBJECT

    aQuickObject.destroy ();

    REMOVE FROM THE CUSTOM TABLE

    _balls_array.splice (_balls_array.indexOf (aQuickObject), 1);

    }

  • How to detect the color pages in a PDF file?

    I use a plug-in of Acrobat C++ read/modify a PDF file.

    I need to get the total number of pages in the PDF file and the page numbers of the pages in color.

    So far, I was able to get the total number of pages using PDDocGetNumPages() with no problems.

    However, I can't find an API that lets me know if a particular page is color or not. Is there a way to do this?

    Thanks in advance!

    But what happens if there are RGB data which means black or grey (R == G == B), that means black or RGB?

    There is a code sample in the SDK to browse content in the PDF file, and then you can get the color space and color of each object.

    But you really need to do background research on the colors & spaces to achieve this properly.

    From: Sachintha81 [email protected]<>[email protected]>

    Reply-To: "[email protected]<>[email protected]> ' [email protected]<>[email protected]>" "

    Date: Wednesday, February 8, 2012 16:57:10-0800

    To: Leonard Rosenthol [email protected]<>[email protected]>

    Topic: How to detect the color pages in a PDF file?

    Re: How to detect the color pages in a PDF file?

    created by Sachintha81http://forums.adobe.com/people/Sachintha81> in Acrobat SDK - see the discussion complete onhttp://forums.adobe.com/message/4194889#4194889

  • How to detect the operating system to PDF using javascript

    Hello

    How to detect the operating system to PDF using javascript. (Javascript console)

    Thanks in advance.

    App.Platform will return "WIN", "MAC" or "UNIX".

  • How to remove the color profile from an image

    The question is how to remove the color profile from an image

    Color fail not in this Document: option to load Photoshop to remove an existing integrated profile but when I save the file, close and open it I always see a color profile in the embedded image.

    Not tried:

    When I clicked on "don't color manage this Document" and click OK and save the document without closing, I see that Photoshop says there is no profile in the image, but once I got close, and then reopen the file it keeps the color profile. How is that possible?

    Use the ColorSync scripting Remove.app found here /Library/Scripts/Remove.app

    Just drag your image to the Remove.app script.

Maybe you are looking for

  • How do I change the horizontal on a glass vertical message in Mozilla Thunderbird?

    I use Mozilla Thunderbird on a Surface 2 Windows op system 8.1 pro computer. I've been through the file, edit and view menus and can not find any where to make this change. Previous answers to this question, well see older versions of Thunderbird and

  • Tecra S2: nVidia 6600 new driver update available?

    I think all the drivers from tecra are outdated!I mean, couldn't toshiba release more drivers more often?During my year 1 S2, I saw 2 pilots diferent video! Just to check how oudated are the real drivers, opengl support is only 1.5 when there is alre

  • NOR-XNET CAN custom interface code in VeriStand

    Hello I work with NI Labview/VeriStand 2011 and I recently received a Council XNET/XS 8513 with my controller PXI - 8106 RT. I noticed a great NOR - XNET.dll (about 10 MB) download in the file system on the system deployment definition PXI. Therefore

  • Update does not update. Get annoyed.

    A week ago I noticed this update was not installed successfully at least a year. I got an error 80070490. I tried to rename a folder as shown here, it was supposed to be supposed to help? There can be no. (The page that suggested: http://social.techn

  • My Windows updates will not be installed.

    windowsnotinstallingupdates MY WINDOWS IS NOT INSTALL UPDATES