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.
相关问题
- how to get running process information in java?
- Spring Integration - Inbound file endpoint. How to
- Stop child process when parent process stops
- Program doesn’t terminate when using processes
- How can I set the SVN password with Emacs 23.1 bui
相关文章
- How to start a process in its own process group?
- How to redirect child process stdout/stderr to the
- File locked by which process?
- How can I read process output that has not been fl
- How to perform an async operation on exit
- To get the module names in blackberry
- How to close a global dialog and display another i
- Java Dealing with child Process
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: