创建一个将锁定另一个应用程序事件的应用程序
实际上我想创建一个应用程序来获取GlobalEvent 并通过另一个自定义应用程序控制该事件。有什么办法可以这样做吗?我可以从特定应用程序获取全局事件吗?它就像一个将锁定黑莓中的自定义应用程序的应用程序,如果您在该锁定应用程序列表中添加以下应用程序并输入密码进行访问,那么当您尝试打开该应用程序时,它会要求输入您在锁定应用程序中设置的密码。
Actually I want to make an application which will getGlobalEvent and control that event through another custom application. Is there any way to do so. Can i get global event from a particular application? Its like an application which will lock custom application in your blackberry, if you add following application in that locking app list and put password to access then when u try to open that application, it will ask for a password which u set in the locking app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
常见建议
检查应用程序
不得不说,一个应用程序内可以有多个进程,因此我们将根据模块名称进行检查:
将应用程序移至后台?
是的,ApplicationManager...所以你可以做的是 requestForeground() 在下一个不在前台的最佳应用程序上,这会将活动应用程序移至后台!您甚至可以使用 requestForegroundForConsole():
Global Dialog
只需要输入密码,您就可以扩展 Dialog,这样会更容易使用结果:
密码检查将如下所示:
将这些放在一起
阻止地址的示例预订应用程序:
Common advices
Checking Application
Have to say, there can be several processes within one application so we will perform check based on module name:
Move application to Background?
Yep, there's no requestBackground() in ApplicationManager... so what you can do is requestForeground() on the next best app which is not on foreground, and this will move active app to background! You can even bring up Home Screen with requestForegroundForConsole():
Global Dialog
Just to input password you can extend Dialog, it will be easier to consume result:
And password check will look like:
Put this all together
Sample to block Adress Book App: