If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
Trusted Contributor
WorkHorse
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800
My Carrier: Simulator
Accepted Solution

Home Screen Notification

Hey Guys, does anyone know how to create a notification on the home screen in the banner similar to this article:

 

http://supportforums.blackberry.com/t5/Java-Development/Application-Indicators-and-Home-Screen-Integ... 

 

I need a very simple notification on the top banner such as an icon and a single string like "New Notification (1)". If anyone knows how to accomplish this without using messagelistdemo any help would be greatly appreciated.

 

Thanks!

 

 

Please use plain text.
Developer
simon_hain
Posts: 15,893
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Home Screen Notification

you can use
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/messagelist/ApplicationInd... boolean, boolean)
----------------------------------------------------------
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.
Trusted Contributor
WorkHorse
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800
My Carrier: Simulator

Re: Home Screen Notification

I don't see a method to place any text into the notification, only to set the icon, its visibility and registration. Maybe I'm missing something? 

Please use plain text.
Developer
simon_hain
Posts: 15,893
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Home Screen Notification

you cannot set a text, but a number:
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/messagelist/ApplicationInd...
----------------------------------------------------------
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.
Trusted Contributor
WorkHorse
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800
My Carrier: Simulator

Re: Home Screen Notification

So just to sort everything out, I wouldn't be able to place a short string along with the notification without using messagelistdemo? 

Please use plain text.
Developer
simon_hain
Posts: 15,893
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Home Screen Notification

no, the indicator supports only a value.
----------------------------------------------------------
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.
Trusted Contributor
WorkHorse
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800
My Carrier: Simulator

Re: Home Screen Notification

Thank's a lot this saved me some time. In the previous article 

 

http://supportforums.blackberry.com/t5/Java-Development/Application-Indicators-and-Home-Screen-Integ...

 

the messagelistdemo manages to add text to the notification process but through an email configuration which is overly complicated for my needs. Do you know if there is any code similar to this which does not utilize the entire message format? 

Please use plain text.
Developer
simon_hain
Posts: 15,893
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Home Screen Notification

inbox integration is a bit tricky, but not that complicated.
you can copy most of it from the sample application.

if you want this integration you'll have to utilize it, otherwise just use the indicator icon.
----------------------------------------------------------
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.
Trusted Contributor
WorkHorse
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800
My Carrier: Simulator

Re: Home Screen Notification

Thank you very much for your help!

Please use plain text.
New Developer
praveengodfrey
Posts: 33
Registered: ‎01-17-2013
My Device: DEVELOPER
My Carrier: DEVELOPER

Re: Home Screen Notification

In the link u have given here, there are some pieces of code...should i just copy and paste them on my BBry java plugin for eclipse and run ??? or is there any preliminary steps to be followed ???

Please use plain text.