Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 26
Registered: ‎08-04-2008
My Device: Not Specified

How to Hide dialog box related with ApplicationPermissionsManager API

Hi,

 

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

 

1)

 

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.

 

2)

 

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

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to Hide dialog box related with ApplicationPermissionsManager API

as they are internal rim applications you can not interact with them in other ways then calling them.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
New Developer
Posts: 22
Registered: ‎07-17-2008
My Device: Not Specified

Re: How to Hide dialog box related with ApplicationPermissionsManager API

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.