从通知栏打开黑莓应用程序 [英] Opening application from notification bar in blackberry

查看:124
本文介绍了从通知栏打开黑莓应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关我的应用程序需要在创造一个通知图标bar.I我能做到这一点。
我的问题是我需要打开从通知栏此应用程序。
 当以往用户选择通知屏幕我的应用程序状态应显示。当用户选择我的应用我的应用程序应该直接打开。

For my application I need to creat an icon in notification bar.I am able to do this. My problem is I need to open this application from notification bar. When ever user selects notification screen my app status should display. when user selects my app my application should open directly.

推荐答案

看一看以下类:

ApplicationMessageFolder
ApplicationMessageFolderRegistry

和以下接口:

ApplicationMessage
ApplicationMessageFolderListener

中注册文件夹为您的应用程序,添加一个监听器的文件夹,并使用 AppicationMessageFolder.fireElementAdded()方法状态信息添加到文件夹。当用户点击通知栏上,消息应用程序中显示可用的文件夹及其内容。当用户点击您的状态消息之一,该文件夹的监听器会通知您的应用程序,因此它可以做出相应的反应。

Register a folder for your app, add a listener to the folder, and use the AppicationMessageFolder.fireElementAdded() method to add status messages to the folder. When the user clicks on the notification bar, the Messages app displays the available folders and their contents. When the user clicks on one of your status messages, the folder's listener will notify your app so it can react accordingly.

这篇关于从通知栏打开黑莓应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆