08-12-2008 06:34 AM
My application needs Keystroke Injection permission for the successful working.
I am using the API invokePermissionsRequest(reuest) from ApplicationPermissionsManager class for enable keystroke injection at the start-up of my application.
I am facing two issues with this API
There is one dialog box invoked after calling this API.
Message is "Application name is requesting changes to its application control permissions" and a "VIEW" button is associated with this dialog box.
I want to add my custom dialog boxinstead of this default one.
Is there a way to Hide or edit this Custom dialog box present with this API invoke?
I'm using Blackberry JDE 4.2.1 for the development.
Instead of asking to save cancel or discard the application resumes if we press the ESCAPE key after this API invokation.
Is there a way to save the changes automatically after this API call?
Now i'm checking the return value of invokePermissionsRequest(request) and loopback to the API call if the return value is false.So the default dialog box is present in all subsequent calls.
If we press the ESCAPE key the return value is always false.
Plz help me to solve this issue.
Thanks in advance.
Jobin C Antony
08-12-2008 08:46 AM
08-12-2008 09:42 AM
On 1, you can't hide it or subsitute it. This was explained to me by RIM that if you could substitute it, your substitution could be malicious and mislead the user.
On 2, I think that is a bug in 4.2.1. It is supposed to give you the prompt. See whether the behavior is the same on 4.2.2 or subsequent.