How do I create a Blackberry notification message that opens an application, such as twitter?

Does anyone know what the actual code is for creating a local notification in a Blackberry application that has an individual application icon, and when a user clicks on a notification in the inbox, he goes directly to a specific page in the application? This is similar to how Twitter for Blackberry works, so you can receive notifications of new tweets through your inbox, and when you click on the link you get to the list of tweets in the Twitter application. Thanks.
enter image description here

+4
source share
1 answer

What you are looking for is called message list integration or sometimes as message folders. Note that the name "message folder" is a little misleading. This does not mean creating a β€œfolder” into which the user must enter (which first threw me away), but creates a message in the Inbox folder, as you describe. For the best user experience, you'll also want to create an application notification icon .

The name of the package to pay attention to is net.rim.blackberry.api.messagelist . You will need to implement ApplicationMessage to fulfill the requests you made.

Here is an example of how to do this in the source code of the sample that comes with JDE, the project name is "MessageListDemo". All JDEs related to (at least) OS 4.5 will have this sample application. If you want to use the new notification bar integration for OS6, be sure to take a look at 6.0 MessageListDemo.

The following is a brief overview of the process and the barebones example . This is for 6.0, but I believe that they remain the same API until 4.6 and have minor changes from 4.5). The MessageListDemo sample will be better, although more thorough, and includes everything you need to do - for example, implementing a MessageFolderListener to detect when the user opens one of your custom messages.

Finally - I see that you asked a lot of questions, but did not accept any answers, even real ones. Please be sure to accept this answer if it helps you so that people do not answer your questions.

+8
source

Source: https://habr.com/ru/post/1340945/


All Articles