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
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800
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!

 

 

Developer
Posts: 16,578
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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

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? 

Developer
Posts: 16,578
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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

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? 

Developer
Posts: 16,578
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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

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? 

Developer
Posts: 16,578
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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

Re: Home Screen Notification

Thank you very much for your help!

New Developer
Posts: 33
Registered: ‎01-17-2013
My Device: 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 ???