How to prevent application from launching in Blackberry
I want to prevent any application(like BBM, Gtalk) from launching when I am clicking on the icon. How is it possible programmatically?
Thanks in advanc开发者_如何学Pythone.
There is no such API to do what you want.
It is possible to disable applications of BlackBerry devices connected to BES (BlackBerry Enterprise Server). It can be done by BES Administrator via creating new rule/policy and sending it to the device.
Ok, I checked the link you provided. Yes, this may work in some cases.
There is an every second timer task that checks the active app, gets its module name and turns the app to background.
It won't block, but will make "victim" application unusable.
Such "blocking" will drain the device battery and will add "freezing" issues on a device.
Especially in cases when there are many modules.
Why do you need a such blocking?
If you plan to implement a business/commercial application that utilizes such approach I would not buy this app, even I am interested in blocking. It does not look good from my point of view.
精彩评论