02-15-2010 03:50 AM
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(indicatorIco n, 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?
Solved! Go to Solution.
02-17-2010 11:26 AM
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?
03-03-2010 07:33 AM
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.