ApplicationIndicator does not not on 4.6

I am facing a problem with an applicationindicator.

When I build my code using the jde 4.6 it does not, or on devices 4.6 or 5.0 or the Simulator.

If I build the same code using jde 4.7 or 5.0, it works well on the appropriate devices and simulators.

JDE problematic used is 4.6.0.12, as well as the included 9000 Simulator.

The indicator is single icon

Can I record the indicator on the first call and put it in the runtimestore using the following code:

EncodedImage image = EncodedImage.getEncodedImageResource("img.png");
ApplicationIcon indicatorIcon = new ApplicationIcon(image);
ApplicationIndicatorRegistry applicationIndicatorRegistry = ApplicationIndicatorRegistry.getInstance();
ApplicationIndicator applicationIndicator = applicationIndicatorRegistry.register(indicatorIcon, true, true);
store.put(APPLICATION_INDICATOR, applicationIndicator);

The normal application startup, I get the indicator in the store of runtime (it is created if it is the first call) and run setVisible (true).

I give the floor to the exit setVisible.

The indicator is never shown, but as said above, only on the built 4.6.0.12.

Is a newer version of the jde 4.6 available? or is the component package for 4.6 based on a more recent version, perhaps (I don't have the plugin installed eclipse)? anyone else had problems with the help of an indicator in this way?

Hello Mark,

Sorry for the late reply, I have somehow missed your post.

I have no problem running the messagelistdemo on the 4.6 Simulator.

However, when I change line 36 of MessageListDemo class of

ApplicationIndicatorRegistry.getInstance().register(applicationIcon, false, false);

TO

ApplicationIndicatorRegistry.getInstance().register(applicationIcon, true, false);

the indicator is no longer visible (the second argument is iconOnly).

I can solve my problem with this information, at least as a workaround.

If I save my indicator with false and do not set a value for the indicator, it appears without the small 0.

It seems that OS 4.6 (at least the 0.12 of the jde) has a bug on the iconOnly parameter.

Tags: BlackBerry Developers

Similar Questions

  • ApplicationIndicator does not work until you restart the phone

    I have a big problem with ApplicationIndicator. It does not work if I install my application for the first time... but after the phone reboot it works.

    This is my code:

    public class Indicator {
        private static Indicator instance;
        private ApplicationIndicator indicator;
        private ApplicationIcon icon;
        private int counter = 0;
    
        private Indicator() {
            icon = new ApplicationIcon(EncodedImage.getEncodedImageResource( "appIndicator.png" ));
            indicator = ApplicationIndicatorRegistry.getInstance().register(icon, false, true);
        }
    
        public static Indicator getInstance() {
            if (instance == null)
                instance =  new Indicator();
            return instance;
        }
    
        public void notify() {
            counter++;
            indicator.set(icon, counter);
            indicator.setVisible(true);
        }
    
        public void resetIconIndicator() {
            indicator.setVisible(false);
            counter = 0;
        }
    }
    

    Solved.

    "The solution is"simple": the init code was originally of 'main' method '.

    Is now just before the enterEventDispatcher().

    I don't know why (init called too early in the life cycle of app?).. .but now it works.

  • iPhone 7 more buttons outside does not

    I've had my iPhone 7 + for about 2 weeks now. Every once in awhile all buttons outside to stop, volume up/down, power, home. The home button will still record and push and give the sensation of taptic and touchID works. The phone itself still works and I can answer texts and which do not use notifications.

    The couple spent time he did, he came upon her in about 4-5 minutes, however it was about half an hour and still nothing. I want to restart my phone, but the switch does not work.

    Has anyone seen this issue or know how to fix?

    Thanks in advance.

    I just experienced the same problem on my iPhone 7, I think it's a bug in iOS, but I am using iOS 10.0.2. Power + button low Volume allowed me to turn it off then turn it back on... Apple please fix this bug!

  • App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    App store, Safari and iTunes does not connect to the Internet after installing macOS Sierra

    After upgrade 'OS X El Capitan' to "macOS Sierra" window only empty "App store" and page "Safari" made its appearance, no error message shows. store "iTunes" and "Dictionary" does not connect too.

    But Google chrome works well.

    So have you tried the next steps in your original post that Safari does not work after installing macOS Sierra:

    (1) x OS: "Unable to connect" or "unable to connect to the App Store. An internet connection is required"- Apple Support

    2) Advanced the steps to correct the problems with the iTunes Store - Apple Support connection

  • Safari does not work after installing macOS Sierra

    Safari and apple store does not work after installing macOS Sierra

    Alas, my crystal ball is in the shop for cleaning, so you will need to provide more details on what "doesn't work" and above all error messages. First of all, let's start the App Store. Provide as much information as possible for those of us who do not sit on your shoulder.

  • My iPad Apple 3rd generation wifi + his cell phone does not work

    MY 3rd generation Apple iPad, wifi + cell

    model number MD408LL/a

    Serial number DM * VGL

    THE SOUND DOES NOT WORK

    < personal information under the direction of the host >

    All sounds, or simply notification and sounds apps (for example do music and videos app still have sound)? If notifications and apps you have notifications on mute: on the iPad side switch - Apple Support ? If the sounds in all applications which have tried for example soft-reset/reboot of the iPad, insert/remove the headphones?

  • After recent, iPhone, 6, update, Windows, Explorer, does not work, see, iPhone

    I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone.   iTunes sees it yet, but windows Explorer does not work.  It seems that some setting has been broken through the update of ios.  A way to solve this problem?

    Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?

    TT2

  • iPhone 7 more telephoto camera does not

    Is anyone having problems with iPhone 7 more telephoto does not activate. I'll go to the camera application and press the 2 x zoom feature, but it appears to be not to activate the camera of 56mm at the front. I cover the lens with my finger, the camera on the right side and the iPhone always displays an image despite me concealing one of the cameras teo. I can't activate the second camera. It seems to only be zooming digitally. I'll do this outside and he'll only digitally zoom when I hide the second lens.

    Im having this same problem. I heard from someone that he could not work until the next software update... but I have no idea and have not found anything in the online help. If someone else gets to know how.

  • Contact ID battery fast draining iPhone 5s does not

    5s fast drainage and Touch ID sinice 10.0.2 iOS iPhone battery update does not

    Restarted the iPhone since the update yet?

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
  • Open the link behind Mail does not work

    Sierra using my link opened behind Mail does not work. The link opens on the top of the window.

    This option works for me in Sierra... is working for you with your previous version of the OS?

  • Update for Sierra and now my Apple music does not appear I have a subscription and I am unable to get my music on the cloud?

    Update for Sierra and now my Apple music does not appear I have a subscription and I am unable to get my music on the cloud?

    Hey there Scotchman2926,

    I understand that you are experiencing some problems with Apple music on Sierra. I have a few suggestions to help you solve this problem. First of all, if you are unable to access the iTunes Store as well as music from Apple, use the information in this article to help resolve this problem:

    If you cannot connect to the iTunes Store - Apple Support

    If this does not resolve the problem, you might try signing out of your Apple ID in iTunes and then connect again.

    Thanks to be come to the communities of Apple Support and let us know how it goes.

    See you soon.

  • iPhone 5 home button does not work after ios 10

    My 5 Iphone Home button does not work after update final IOS version of 10.

    The home button works on the first push to wake the phone but it will not open the phone the second button.

    I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.

    You attempted to restart your phone?

    You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears

  • New IMac does not, Apple does not change

    https://www.YouTube.com/watch?v=UdUY038FwCI

    I have this problem since I was the imac. I pointed out in 3 days. Apple does not change because I didn't buy that at its retailer. 3 months, still waiting.

    What should I do?

    Everyone pays even, but I get nothing (same lack offers as a freelancer). I think it's fair. What am I, I guess what to do?

    Run the Apple Hardware Test > Apple Hardware Test - Apple help

  • Why Safary does not load the content of pages?

    Why Safary does not load the content of pages? I mean, when I hover over the places where should be the content, he is always showing the "redirect to: [email protected]/" lower left. My Safari is 9.5 and worked fine until Safe Fimder Virus get inside my computer. Mozilla Firefox is a bit slower. If someone could give me an idea on how to deal with it, I would be happy.

    Sorry if my English is not good, I am a Brazilian who is still learning English

    Your English is very good!

    Redirects are usually due to adware or malware.

    Download the run MalwareBytes.

    It of free and takes only a minute or two. Which should remove all adware and malicious software on your Mac.

  • 13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. unplugged

    13-inch early 2011 macbook pro. light green mag extremely shoddy security cordon, macbook pro stopped charging bought new magsafe. and the led does not illuminate or strings. SMC reset now mac does not recognize battery. disconnected the battery and security cordon mag, maintained hold button / stop for 5 seconds, nothing. Another SMC reset and it is the only way Mac powered on that she has no back light for the keyboard and the fan works on high all the time, please can someone HELP, thanks.

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

Maybe you are looking for

  • Manufacture of extreme dual band 802.11 airport "buzz sound" when the power supply is attached

    Hello which is very probably wrong with my Airport Extreme? My Airport extreme dual band 802.11 done "buzzing" sound when the power supply is attached. The sound disappears immediately when power is disconnected and begins as soon as you connected ag

  • Impossible to install labview 2012

    I try to install labview 2012 on my 64 bit Windows 7 system, but fails; Here are the symptoms: (1) I click setup.exe directly and it shows that: (2) if I run it with the administrator, it appears that: (3) I checked that I can execute another exe fil

  • HP AF124NO: Power issue or something else?

    Hello I have several problems with my new laptop that I bought in January 2016. I didn't know what category to put it, so maybe it's in the wrong. These problems may be related somehow. Problem 1. When start the computer the first time that he see th

  • Disk space room of Windows Vista (c) (why it is nearly full?)

    I have Vista and my question is on my C drive. My local disk fills up really quick. I deleted almost all the files and I don't have a lot of programs.  The program, which takes the most space is iTunes. What could I do to know what takes up all my sp

  • With your back regular ups on Windows 7

    Made back regular ups on my PC Windows 7 slow down my computer with all my disk space on my hard drive?