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
Abhijit
Posts: 105
Registered: ‎07-24-2008
My Device: Not Specified
Accepted Solution

controlledAccessException

Hi All,

 

   While executing below code in my app, i get controlled access exception on device only.

 

EventInjector.KeyEvent inject = new EventInjector.KeyEvent(EventInjector.KeyEvent.KEY_DOWN, Characters.ESCAPE, 0);
inject.post();

 

 

On simulator i dont see this.How to fix it on device?

 

regards,

Abhijit Chandekar

Please use plain text.
Developer
peter_strange
Posts: 19,599
Registered: ‎07-14-2008
My Device: Not Specified

Re: controlledAccessException

[ Edited ]

Does your application have permission to inject events?  THis is the Input Simulatopn option if you are checking permissions?

 

There is a ApplicationPermissionsDemo sample which is very useful - I suggest you have a look att hat.

Please use plain text.
Developer
Abhijit
Posts: 105
Registered: ‎07-24-2008
My Device: Not Specified

Re: controlledAccessException

No, App does not.But finally my BES team did apply that after few days.

Thanks Peter.

Please use plain text.