12-17-2012 06:30 PM
Hi guys,
My application uses the ApplicationIndicator class to notify users of messages in their inbox. The application is developed on JDE 4.6. When the application starts the following code is executed
ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();
EncodedImage mImage = EncodedImage.getEncodedImageResource("icon-n.png") ;
ApplicationIcon mIcon = new ApplicationIcon(mImage,true);
if (reg.getApplicationIndicator()==null) {
reg.register(mIcon, false, false);
}
Once a notification is pushed to the user's phone the following code is executed
ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance(); ApplicationIndicator appIndicator = reg.getApplicationIndicator(); appIndicator.setValue(1); appIndicator.setVisible(true);
This code works perfectly on OS 4.6 and 5.0. However, when this code runs on 6.0+, the indicator isn't displayed.
I've done some digging around and have come around this article about application indicators in OS 6. The article states "Applications can add their own indicator icons to the home screen. However, unless they also add a custom message the application will not be included in the notification summary as shown in the following screenshot." The article the goes to show how you can add a summary message to the notifications summary tray.
Now the problem is I'm compiling for OS 4.6 but I need to also support OS 6+. Is there a way to show the indicator in OS versions 6+ without including a summary message to the notifications summary tray?
Thank you in advance
12-18-2012 03:54 AM
12-18-2012 11:57 AM
There are no exceptions being thrown..
I've checked the object returned from both calls to ApplicationIndicatorRegistry.getInstance() and it is the same. Furthermore, I've checked the process ID after both calls and it is also the same.
One interesting point though is the debugger does not stop at the breakpoint that I've set for the second call (the one that displays the icon).
Do you have any idea what that might mean?
12-19-2012 04:27 AM