从黑莓日历中启动应用程序
我们通过我们的应用程序在黑莓日历中创建日历条目。
我们的客户想知道当他们访问我们创建的条目时是否可以从黑莓日历中启动我们的应用程序。
We create calendar entries in the blackberry calendar via our applicatin.
Our client wanted to know whether it is possible to launch our applicatin from within the blackberry calendar when they acces entries created by us.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确实可以。请参阅 BlackBerry API 并查看 ApplicationMenuItem 和 ApplicationMenuItemRepository。在 ApplicationMenuItem 的 run 方法中,您可以启动应用程序或发布应用程序可以订阅的 GlobalEvent。
当您的应用程序创建日历条目时,您可以/应该获得该条目的 UUID 作为回报。您可以设置在全局事件中选择作为参数的日历条目的 UUID,并在您的应用程序中检查它是否是您的应用程序创建的条目。
Indeed you can. Refer to the BlackBerry API and see ApplicationMenuItem and ApplicationMenuItemRepository. Within the run method of ApplicationMenuItem you can either launch your application or post a GlobalEvent which your application can subscribe to.
When your application created the calendar entry you could/should have got a UUID for the entry in return. You could set the UUID of the calendar entry selected as an argument in the Global Event and check in your application whether it was an entry your application created.