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
Highlighted
New Contributor
Posts: 2
Registered: ‎02-09-2011
My Device: Not Specified

UI simulation APIs

Hi

I am Hoshang, I am new to Blackberry Mobile App. Development. I am looking for APIs which can simulate the user events (like click on button, enter text in textfield, selecting items from ComboBox etc.).

 

I have briefly gone through the 6.0 API Reference manual and found EventInjector Class for KeyEvents, Touch events etc.


Can someone confirm that is it possible to write code that could interact with mobile simulator and my written code could perform these UI operations on the UI components?

 

Thanks!

Developer
Posts: 604
Registered: ‎12-27-2010
My Device: Not Specified

Re: UI simulation APIs

One thing to remember if you do this is that by default, this permission is denied on a normal phone. If you're planning on using this for your actual app be sure to take a look at ApplicationPermissions and ApplicationPermissionsManager.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: UI simulation APIs

And the answer to your question is yes.