NotificationManagers LED color change

Hello

Small question:

Someone knows how to change color LED in NotificaitonsManager?  Is it possible to use colors other than the default is red?

Info:

I'm just using API NotificationManagers simple way: (compile with 4.2.1)

1. sign up for app in notificationManagers

2. call the NotificationsManager.triggerImmediateEvent (MY_NOTIFICATIONS_ID_1, 0, Thi, null);

I looked at the API LED and it does not appear to be linked to the NotificationsManager.

Thank you

JChow

See Notifications demo application shipped with JDE, use LED class methods to change the color of the indication.

Tags: BlackBerry Developers

Similar Questions

  • Need assistance creating a LED color changer Application

    Hello

    I guess I can consider this day 1 of programming with C++ and for Blackberry devices 10 but unfortunately a lot of the syntax seems vaguely similar to Java that I have some experience with.

    I am trying to create an application that listens whenever another application on the device requires that the front led as such and allow the user to define static color of the LED when it is activated by a myriad of applications.

    So far, I read the API functions includes and have used with success the led_request_color(); function to change the color of the LED when the action as a sliding down is engaged on the touch screen...

    Here is the code:

    /*
    * Copyright (c) 2011-2012 Research In Motion Limited.
    *
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    * http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
    
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    static bool shutdown;
    
    static void
    handle_screen_event(bps_event_t *event)
    {
        int screen_val;
    
        screen_event_t screen_event = screen_event_get_event(event);
        screen_get_event_property_iv(screen_event, SCREEN_PROPERTY_TYPE, &screen_val);
    
        switch (screen_val) {
        case SCREEN_EVENT_MTOUCH_TOUCH:
            fprintf(stderr,"Touch event");
            led_request_color("1", LED_COLOR_BLUE, 1);
            break;
        case SCREEN_EVENT_MTOUCH_MOVE:
            fprintf(stderr,"Move event");
    
            break;
        case SCREEN_EVENT_MTOUCH_RELEASE:
            fprintf(stderr,"Release event");
            led_request_color("1", LED_COLOR_RED, 1);
            break;
        default:
            break;
        }
        fprintf(stderr,"\n");
    }
    
    static void
    handle_navigator_event(bps_event_t *event) {
        switch (bps_event_get_code(event)) {
        case NAVIGATOR_SWIPE_DOWN:
            fprintf(stderr,"Swipe down event");
            break;
        case NAVIGATOR_EXIT:
            fprintf(stderr,"Exit event");
            shutdown = true;
            break;
        default:
            break;
        }
        fprintf(stderr,"\n");
    }
    
    static void
    handle_event()
    {
        int domain;
    
        bps_event_t *event = NULL;
        if (BPS_SUCCESS != bps_get_event(&event, -1)) {
            fprintf(stderr, "bps_get_event() failed\n");
            return;
        }
        if (event) {
            domain = bps_event_get_domain(event);
            if (domain == navigator_get_domain()) {
                handle_navigator_event(event);
            } else if (domain == screen_get_domain()) {
                handle_screen_event(event);
            }
        }
    }
    
    int
    main(int argc, char **argv)
    {
        const int usage = SCREEN_USAGE_NATIVE;
    
        screen_context_t screen_ctx;
        screen_window_t screen_win;
        screen_buffer_t screen_buf = NULL;
        int rect[4] = { 0, 0, 0, 0 };
    
        /* Setup the window */
        screen_create_context(&screen_ctx, 0);
        screen_create_window(&screen_win, screen_ctx);
        screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_USAGE, &usage);
        screen_create_window_buffers(screen_win, 1);
    
        screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void **)&screen_buf);
        screen_get_window_property_iv(screen_win, SCREEN_PROPERTY_BUFFER_SIZE, rect+2);
    
        /* Fill the screen buffer with blue */
        int attribs[] = { SCREEN_BLIT_COLOR, 0xff0000ff, SCREEN_BLIT_END };
        screen_fill(screen_ctx, screen_buf, attribs);
        screen_post_window(screen_win, screen_buf, 1, rect, 0);
    
        char set = 222;
    
        /* Signal bps library that navigator and screen events will be requested */
        bps_initialize();
        screen_request_events(screen_ctx);
        navigator_request_events(0);
    
        /* Get Events - This doesn't work */
        if(bps_get_event() == led_get_domain()){
            led_request_color("1", LED_COLOR_BLUE, 0);
        }
    
        while (!shutdown) {
            /* Handle user input */
            handle_event();
        }
    
        /* Clean up */
        screen_stop_events(screen_ctx);
        bps_shutdown();
        screen_destroy_window(screen_win);
        screen_destroy_context(screen_ctx);
        return 0;
    }
    

    I don't know if I'm doing this right, but I'm trying to get the led_get_domain() function to retrieve the IDS of events LED triggered by other applications? That's why I think that's what I tried to do, but to no avail in the code above:

     /* Get Events - This doesn't work */
        if(bps_get_event() == led_get_domain()){
            led_request_color("1", LED_COLOR_BLUE, 0);
        }
    

    So, I guess I'm a newbie in this and I would appreciate your help and any improvements possible. Thank you!

    Accroding to https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.bps.lib_ref/com.qnx.doc.bps.lib_r... you have that one event for LED that is LED_INFO it's just tells you the current state of the LED.

    To start to receive this event, you must first call led_request_events().

  • change pdf or text color change photo in black and white

    Can I change a text color change the image or pdf in black and white? It cannot be put into iPhoto.

    You can in GraphicConverter 9. Not sure about other graphics programs.

  • NotificationApplicationSettings and Led color

    Hey. There is no Led color property in the NotificationApplicationSettings class, but there is a list drop-down color led in the menu of notifications app customized for applications. Is there no workaround solution for color led in this drop-down list?

    TKS
    J.

    Hey. Uh, what I really wanted, was for the user to be able to use the standard notif app menus to choose the color of the led. But this is not possible, so I wrote it myself. I have my own color drop the so they need to open my application to place it. I also do as you say my own Led because the notif std is interfered wit sometimes by the notif mail led. Even the spirit of the sound, etc. I obey the rules worldwide and notif app settings so it's similar, but my app volume is the volume of media, that is a question too if they reduce media flight. In any case, it works fine, so tks for your help.

    Justin.

  • Background color changes when you save a theme

    Just did a new install of Windows 7 Home Premium and has found that, when I save a theme, the background color changes from black (what it was worth) to white. Another thing to note is that when I save the generic theme "Custom Theme" (meaning an unsaved theme) remains, and the background color in the registered theme is changed and does not change when I click on the "custom theme". This is a new installation, so the only software that has been installed is video drivers, network cards drivers, the drivers of the antivirus and sounds. I've used the System File Checker, and he found no problem.

    Hello

    I recommend that you follow the steps from the link below and check if it helps.

    Create a theme

    http://Windows.Microsoft.com/en-us/Windows7/create-a-theme

    Hope this information helps.

  • Color change in animation

    Hi all

    I'm trying to color changer in an animation in a Web file.

    When I try to read in a browser color is not taken into account

    I got the message in the window "output":

    N:

    The images in EaselJS numbers start at 0 instead of 1. For example, this affects the calls stop and gotoAndPlay. (2)

    The color effects are published as a filter and subject to the same restrictions.

    Animate CC 2015.1

    Thanks for your help

    MG

    If you are tweening text, select the text > click Modify > break is > change > to break.

    then, you can tween the text (which is converted into forms twice using 'split').

  • Color changes during the recording of the PSD to JPEG

    Hi all

    When I export the image below of psd to jpeg color changes.

    The rose becomes Purple!

    2016-08-27_22-47-24.jpg

    Any help would be appreciated

    Just to be absolutely clear on this point - the problem here is that the file is in ProPhoto RGB.

    Windows 'Photos' isn't the color management and cannot represent a ProPhoto file correctly. No more than any other application without color management.

    Convert sRGB. It is the right answer to your question (which is the error of the very common beginner, BTW).

    In Photoshop, go to Edition > convert to profile > sRGB IEC61966 - 2.1.

    If you're Using "export as" or "Save for Web", just check the box convert to sRGB.

  • Except for the color change of the Web of gifs

    I'm trying to 'save for web' a gif, and I get a change of color each time. I changed my color settings so that it is set to RGB monitor and it is extracted under test format as well. On the Save for Web window, making sure that "Convert to sRGB" is checked as well.

    Despite all this, the color change always happens. Here is a screenshot of my color settings:

    Screen Shot 2016-07-19 at 10.48.33 AM.png

    Is there something I can do to fix this? Thank you in advance!

    Saving as a gif you are inevitably reduce your color up to 256 colors gamet and so according to your original image you can result in a change of color simply by there. You must however not use your display profile in your color settings. If you want to put something on the web or in an application that is not color has managed the best choice is sRGB. Try these settings.

  • Color change bridge > Photoshop

    When I open a jpg file in photoshop, make the alternations of color, then click done and actually opened it in photoshop the colors change, I'm editing for the use of the screen, so I select proof of installation > RGB monitor, which is the reason why they change. However anyway is to see this 'mode' while doing the alterations of color?

    This isn't a situation where you would use proof - is planned for the overview of printer profiles.

    As far as I know, proof Setup > monitor rgb disables color management, and is not something you want to do.

    If your work is planned for a display screen, make sure that the sRGB profile is built-in when you save the image.

  • Color change in the exported sequence (Premiere Pro)

    Short description: colors in exported from first and downloaded movies on YouTube do not match the colors of the source that were imported in the firstimages.


    Background: I use tool of digital color meter from Apple to read the colors on my poster and Apple Preview to display image (PNG) files.  To eliminate the effect of color profiles, I put my 'Generic RGB profile' poster (which, as far as I know, does not change the R:G:B values).

    Description: I made a sample consisting of a single color animation and exported an image as image file.  Such color as displayed in my animation software, that's what I've specified (R:G:B): 255:0:255, as it is in the exported image as seen in Premiere Pro.  However, if I export a MOV file in Premiere Pro, upload that file to YouTube and play, the color is: 251:0:254.  Also, if I open the MOV file in QuickTime Player and export an image, the color in this context is 251:0:254.

    Question: what causes this color change, and how can I eliminate it?


    N.B.: This isn't 'gamma changeQuickTime Player' (at length elsewhere).  The color as read in QuickTime Player is 242:13:207 - a large and easily visible difference and who does not appear in other players MOV (ex: Player Flip).

    I JUST DISCOVERED SOMETHING!

    I was testing my single color sample. MOV file on different browsers, and I noticed that he had a slight color change between when YouTube first loaded (Chrome browser) video and when he played.  When I stopped it at the first point loading and read the value of the color, is 255:0:255 - just what I wanted.

    I now believe that the video I'm generating is correct and YouTube does not alter the video as part of the Uploader, but it changes in reading it.

    So, I'm done.

  • Colors changing when you export files HAVE in InDesign

    Hello

    Since the upgrade of CS6 CC last year, I think my profiles color or something are put in place bad between CS programs. When I'm working on a file in Illustrator (RGB) and then place it in indesign, as soon as I export the PDF the colors change. For example, a series of gray tones will be released as blue and bright orange. I'm not clued up with the settings of all programs and the inner workings, but I've never had this problem before, I've never had to change all the color settings, so think, need a new default setting I don't know.

    I understand there are a many settings that could do that. I export the PDF RGB file too, but I can't see a likely switch to CMYK. Is anyway to reset all the settings back by default so that I can at least try and get the settings I usually use with CS6.

    Don't know what to do... any advice would be much appreciated! Thanks in advance

    Your Illustrator color settings is a problem. Choose 2 North America prepress of the parameters, which will assign sRGB to new documents and allow you to assign a profile to the existing docs. You can also consider to synchronize all your Adobe applications through the bridge Edit > color settings.

    As test try to synchronize your color for North American prepress settings, create a new document, place the file I and export with the output parameters in my first post.

  • color change

    Now and then my color space seems to change on its own, and I can't figure out how to recover from the previous color space.

    The last time that happened, I was 'save for web' and that he was trying different settings of sRGB checked and unchecked. This might have caused the problem, but I do not know why because it is not the color of the recorded image which is at issue. It is the color space of the PSD file that has changed somewhat. The change is that the colours are duller and seem more washed out.

    I know that this has happened when I was not "save for the web." It seemed to me that I was trying to copy or paste or by using a different combination of keys when all of a sudden all the colors changed and I could not get back them. Cancel or cancel using the history does nothing to recover the original colors.

    It drives me crazy. I just spent an amazing amount of time - week (Yes, weeks) in fact - perfecting of colors for a site color scheme complex and out of nowhere my colors are completely foires. So I understand what happened and get back my original colors.

    I read in the forum about the possibility of having changed color settings; so I saved the file under a new name and tried other color settings, but that has not changed a thing. And if I look at the other files based on the file that has messed up (but which have original colors), color in both files settings alike. I also watched test and test colors and saw that the settings are the same as in the other case where the colors are not screwed up.

    Any help will be greatly appreciated.

    Thanks for the tips. But I has not changed anything in the color settings except in the window of the Web. That's when I left the save for web I noticed that all my colors had changed. But then again, this happened with other files and seemed to have occurred after use of key combinations such as cut and paste. I must have clicked the wrong key. But even when I closed the file without saving changes and then reopened, he still had the washed out colors. So SOMETHING changed, I just can't understand what this thing.

    ************************

    FOUND ANSWER

    It's embarrassing, but in this case, I found out something that I had moved into my open file was applied curves that touched all colors because it was near the top of the layers. I guess I didn't notice because I was zoomed in on an element. After I saved for the Web and closed the window, I noticed the color changes. In this case, it was an easy solution. But what happened before and I know it wasn't because of the curves or similar settings. Something happened which washed out/desaturated colours. I'll figure that one another day.

    But thanks to all who responded. At least I learned a few things

  • The objects will not retain any color defined when the surrounding objects have their color changed

    Just Illustrator CC 19.0.0 was downloaded to me. When I place a line and then set its color, close objects can also have their color changed. This includes the items in the file of until I added the line, not on the same map-art objects. It is not universal, nor is it compatible. Objects already in the file are perhaps there for months, but a change is close will change their.

    The Illustrator files can still be an earlier version, and there were a number of illustrations that had black lines and text to white turned a few months back. As these illustrations are for a book, being unable to guarantee that the colors will stay together long enough to complete the illustration and export it tends to make unusable Illustrator for tasks of editions. I hope that InDesign and Photoshop do not have the same questions!

    nwjh,

    You must update to 19.1 (or 19.1.1 for Windows) or 19.2 (lattethe has some problems, then you can start with the former).

    If 19.1 (or 19.2) does not appear, disconnect and then reconnect the creative cloud application. After that, the 19.1 update must be visible in the creative application of Cloud.

  • I use the color picker to select a background color, then try to create a new document using this background color. The appearance of the color changing at this time. It is a new problem. I have successfully used the procedure several times in the p

    My background color changes when I try to apply it. I put the color using the color picker. Then I try to create a new document with the same background color. But that change of a very different color. What I am doing wrong? I've used the previous procedure, several times, without this problem.

    The new document has a different color profile. Make sure that they are the same.

    The same result of RGB numbers in different colors in different color spaces. Or in other words, the color space defines the specific color produced by a certain set of numbers.

  • Issue with the brightness when the colors change

    I want to change the color of a building when I use the brush of color change the color looks really washed out dark red IE looking for rose. It will correct the right color if I have everything first to use the brush set of color on the brightness and then use the color value but let the texture of the building. It changes the image, the color is another way. Thank you

    You might look in a technique called frequency of separation. This would be separate your texture and color in two layers, so you can change the color without the texture. Here is an example:

Maybe you are looking for