Change the icon of the ApplicationIndicator

I am a new developer in the world of BB and was building a program of notification with the ApplicationIndicator JDE 4.6.1 objects

The code I used was something like as such...

If (temp > 0)
{
AppIndicator.set (icon2, temp + 1);
}
on the other
{
AppIndicator.set (icon1, temp + 1);
}

If done AppIndicator refers to the indicator of the current application using the current ApplicationIndicatorRegistry.

In addition, the indicator was initially saved with icon1, I'm changing to icon2

My problem is that when I debug him I can see the icon in the object AppIndicator value change, but in the simulator of the icon does not actually change.

Is this a problem of refresh?

I tried setting the visible property of the flag to false and then true to simulate a refreshment, but that does not work either. Someone at - it ideas?

Thank you very much for your time

So, I went back and checked the code and values in the debugger, and all variables have been updated as expected. However, it turns out it was a false alarm - one of the files two image I was using wasn't registered properly (don't know why), but when I recreated and saved again once the code worked as expected. Thank you

Tags: BlackBerry Developers

Similar Questions

  • Changing the value of ApplicationIndicator

    Hello

    Adds an icon in the homepage of BB using ApplicationIndicator and when I try to change the value from another file using setValue() get "null pointer exception". Do not know how to proceed with him.

    Add the home page icon

    ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();
                EncodedImage image = EncodedImage.getEncodedImageResource("Indicator.png");
                ApplicationIcon icon = new ApplicationIcon( image );
                indicator = reg.register( icon, false, true);
                indicator.setIcon(icon);
                indicator.setVisible(true);
    

    Changing the value

    ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();
                        ApplicationIndicator AppIndicator = reg.getApplicationIndicator();
                        AppIndicator.setValue(5);
    

    I'm missing something here...

    Pls help

    TIA

    Shiv

    incoming call runs within the phone application. the phone application will not have access to your indicator of demand.
    Use global events, the Bank of execution or a callback mechanism to communicate with your application and run change it.

  • Change the icons in the Sierra

    Does anyone know how do to change the icons in the Sierra of the old way of cut and paste in the information windows no longer works.

    When I try to copy and paste an icon of a file or folder in the right Info Panel icon. it sticks just a generic icon there.

    But what always works for me, is to open an image in the Preview file and select the part of the image I want to use as icon custom, copy the selection into the clip Panel, then paste it into the icon well of Info Panel to another file or a folder that will change the icon to elements that are not protected by the protection of the integrity of the system.

    But generally, I use iconStix to assign a custom for files and Folders icon.  iconStix has just been updated for Sierra and it is quite easy to combine the icons in the application and assign to files and folders.

    After you have created the icon of iconStix use the command "file > attach Custom Item", then select the item in the file picker.

  • How to change the icon of an extra folder in the sidebar?

    I just downloaded Sierra, I have a mac mini and I want to change the icon of a folder that I created, I already changed it, but in the sidebar, there is no icon, so I need help to change to the icon I want.

    If you had already created a folder named & then hung out in the

    Docking station, a change in this file might have to replace one in the Dock; so

    If this is the case, do drag the earlier version of Dock, replace with new.

    Of course, when you drag the icon of the old dock, it will go "poof!"

    {Are you referring to the dock as a 'side bar' on the desktop?}

    Files and web links, etc. can be slid in the side bar (Dock)?

    on the side of the bulkhead the nearest trash. Only applications or utilities

    can be moved to the other side.

    Here is an example of a file with a custom icon to the dock, put in place to

    be considered a list, arranged by name; used to launch additional items that

    otherwise could not fit well on the dock. There are also the Alias of elements:

    The alias or the symbiotic relationship that you create in the Dock is always based on the presence

    the original (a custom, etc folder) or on the icon element can become a '? Mark '

    or blank if the original is no longer available. I put the original in my user folder.

    If you already know how to copy a new icon to a folder (else, etc.)

    or make a new graphic icon and paste it into the folder to replace original;

    so if I understand this issue, the rest should be easy.

    Unless you try to accomplish something else...!

  • Change the orientation of the mouse. Click the apple icon, and then select check box on the left. However, this box is covered by a video on the use of the mouse. How to remove the video?

    Change the orientation of the mouse.  Click the apple icon. System Preferences; OK to this point; the area to select 'Left hand' is covered by a video on the use of mouse clicks. How can I remove the video (s) so I can't select 'Left hand' in the box?

    System Preferences > mouse, and then select the tab more moves.

    Then on the left, select: slide between pages

    Click scroll left or right with one finger , and then make your choice.

    You cannot delete the video. This is a demonstration.

  • Can I change the text in the pop-up window that appears when I hover over an icon to the toolbar?

    There are three icons of the toolbar I need to change the popup text.
    They are:

    "Window or close the open tab".
    "Close all tabs but the selected one.
    "Close all tabs".

    I would like to know where this text is stored so that I am able to change my wording preferred, such as:

    "Close this tab".
    "Close other tabs".
    "Close all Tabs" - OK, the last one is great!

    Thanks for any help you can give.

    - Baht
    

    OK, I found the text.

    The text is called the "tooltip" and it is an extension called "buttons of the toolbar.

    The file is called "button.dtd" and is located in the buttons.xpi toolbar / chrome / button.jar / local / en - us.

    I edited the text, replace the .dtd file in button.jar, updated the button.jar file in the as file and reinstalled.

    Now my ToolTips, look like I want to.

    Hope this helps others.

    - Baht
    
  • Change the preview image of audio files (no icon) in the Finder?

    I know that this is easily done in iTunes, simply by changing the 'work' of the song.

    But I need to do it outside of iTunes, and I need to change the preview image and not the image of the icon.

    Many tutorials show how to easily change the icon of a file, but I found nothing on the change in the preview...

    As said, I need to do it in the Finder, or perhaps with Quicktime? I don't know how I can use it, if necessary.

    I need to have the work I want already in the file before you import it into iTunes, regardless of the reason for which I won't get into that.

    You can use a tag editor to third party such as Meta-z for the files to m4a format.  I would recommend the Rage of free media now, but I can't find a download link works.

  • How is the best way to change the label of an icon on the home screen

    When I place an icon on the home screen I want to change the label, I wish it were.

    I don't see in an integrated way to do this.

    You can name a bookmark all you want, but when you a site now pressure on the home screen and click on Edit, bookmarks are not always suggested as matches. The only way I can assure you that a referenced site is listed is to add some unique characters for the name of the bookmark that don't arise in the history of this site. Of course, this is taking away total control...

  • When I place an icon on the home screen, can I change the label?

    When I place an icon on the home screen using firefox for android on my tablet from Samsung, the label is inserted for me. How can I change

    The easiest way is probably in bookmarks the page that you are willing to have the icon and by changing the name of the bookmark by pressing on long, long press again to add it to your screen.

  • How can I change the color of the icons of navigation buttons?

    I was wondering if there are modules or mods for 25 of Firefox that would allow me to change the color of the icons on the navigation buttons.

    I think along the lines of the old style where the buttons next and previous lit up green reloading, in blue, stop at home with a mixture of yellow and white, and red when, they are clickable.

    I find with Firefox 25, I get light when gray grey and dark grey when active, I think is a little hard to tell at a glance. I prefer the colour keys and hoped there was an add-on that would allow me to change this in Firefox 25.

    You will need to search the site of Mozilla Add-ons to see if you can find a theme with colors that suites you.

  • Display the icon change the number of columns

    I'm sure it must be a way to change the number of columns in the display icon, not the space between columns, not the size of the icons, but the number of columns, for example, that dumpster has 4 columns and I want to see those hidden on the right I have to use the scroll bar, I want to do I want to see ONLY for columns of the filling finder window?

    Thank you very much

    Roger

    "BTW that seems to only happen when I consult with ANY ' arrange by" or "sort by"!

  • Cannot change the icons on the applications and folders that I used to in El Capitan?

    I went through many of the listed instructions and I still get a little beep error when I try to change my icons. Is there something that can be locked or something?

    OS X El Capitan: create icons for files or folders

  • How to change the space between folder icon and the text on the personal toolbar?

    I have some files in the personal toolbar with just a letter to indicate what they are, but on the theme that I use, the letter is too far from the record, it belongs to and partially falls under following folder icon. I don't want to increase the space between all the icons to show the full letter, as this decreases the amount of icons that you can have in the toolbar. Instead, I want to reduce the space between the file and the text belonging to him, so he is right next to him instead of 5 pixels away.

    I found various entries to change the padding and margins in userChrome.css, but it's always around the icon, I don't know where to look to close the space between the icon and the corresponding text.

    Any help would be greatly appreciated, thank you.

    Did you check the value of the left margin of the text?

    You can set if necessary negative margin values.

    #PlacesToolbarItems .toolbarbutton-text { margin-left: -2px !important; }

    Add .bookmark-item [container] If this enough for the items in the folder

    #PlacesToolbarItems .bookmark-item[container] .toolbarbutton-text { margin-left: -2px !important; }
  • Is it possible to change the color of the post icon (or other)?

    I always confuse Safari and Mail.

    Saxyjazzman,

    You can. Matter of fact, this is how my Mail/Safari icons appear:

    Here is the explanation of how Apple change an icon: the basics of the Mac: icons represent files on your computer - Apple support

    However change a program icon requires the integrity of System Protection (SIP) must be disabled. http://www.Macworld.com/article/2986118/Security/How-to-modify-System-Integrity-de protection-el - capitan.html

    When I changed the Mail icon, I have disabled temporarily SIP using the link of Macworld. After the change is made, I have reactivated the SIP using tips in the link of Macworld.

    Edit: Just noticed that your question is about the iPhone. In this case, none of what I said applies. Icons can be changed in the iOS.

  • How to change the icons?

    How would I go about changing the icons?

    Icons and where?

Maybe you are looking for

  • Web page is not look right.

    Some Web pages may not load correctly. They don't look right.

  • Firefox look funny.

    For some reason, the appearance of Firefox is unusual. Instead of a Web page in full screen between bookmarks and status bars, there is a black background and a medallion with the Web page in it. It only works on a single tab.

  • Why can't I connect to Gmail using Firefox?

    Any time I try to log in to Gmail, regardless of the URL used to get there, I get the same results as many others have reported: "page isn't redirecting properly.» Firefox has detected that the server redirects the request for this address in a way t

  • Curious to know if I can trade in my 6s for the new smaller 5se?

    I've recently upgraded to a 6 s iPhone 64 GB from my old 4. I wonder if there is a method for me to trade in my 6 new s relative to the 5se announced today. Sounds similar in structure/performance and I did a little "like the smaller footprint... Tom

  • AnyConnect client cannot access external sites

    I am installing AnyConnect VPN with no split tunneling. ASA 5505 v8.2. It seems that it should be really easy. I must be missing something. I can get AnyConnect users to connect very well and they can access internal sites and on other sites in IPSec