Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
simon_hain
Posts: 16,096
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany
Accepted Solution

ApplicationIndicator not working on 4.6

I am facing a problem with an applicationindicator.

When i build my code using the 4.6 jde it does not work, neither on 4.6 nor 5.0 devices or the simulator.

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

 

used problematic jde is 4.6.0.12, together with the included 9000 simulator.

The indicator is icon only

I register the indicator on the first call and put it into 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);

On regular startup of the application i retrieve the indicator from the runtime store (it is created if it is the first call) and execute setVisible(true).

On exit i call setVisible(false).

 

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

 

Is there a newer jde 4.6 release available? or is the component package for 4.6 based on a more recent build maybe (i don't have the eclipse plugin installed)? anybody else had problems with using an indicator in this fashion?

 

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Administrator
MSohm
Posts: 14,517
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: ApplicationIndicator not working on 4.6

Are you seeing issues with the messagelistdemo included with the version 4.6.0.12 BlackBerry JDE?  I ran it and was able to see the application indicator.

 

Does the issue only appear when using the RuntimeStore?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
simon_hain
Posts: 16,096
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: ApplicationIndicator not working on 4.6

Hello Mark,

sorry about the late reply, i somehow missed your post.

 

I have no problems executing the messagelistdemo on the 4.6 simulator.

However, when i change line 36 of the MessageListDemo class from

 

 

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 register my indicator with false and don't set a value for the indicator it is displayed without the small 0.

 

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

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.