How to imitate the event with a click of a field? for example the icon "mail".

I can imagine a complicated way.

1 use the API API net.rim.device.api.ui.UiApplication.getActiveScreen to get the active display.

2. Use the net.rim.device.api.ui.Screen.getFieldCount API to retrieve the total number of fields on this screen; or use getFieldWithFocusIndex() to retrieve the index of the target field.

3 use getField (int index) to retrieve the specific field.  With methods such as "KeyDown()", and then click the field.

Is there an easier way to do this?

Thank you.

If you are allowed to inject events, the following code should do the trick

invokeAndWait(new Runnable () {
  public void run() {
    EventInjector.NavigationEvent e;

    e = new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_CLICK, 0, 0, KeypadListener.STATUS_NOT_FROM_KEYPAD);
    EventInjector.invokeEvent(e);

    e = new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_UNCLICK, 0, 0, KeypadListener.STATUS_NOT_FROM_KEYPAD);
    EventInjector.invokeEvent(e);
  }});

Tags: BlackBerry Developers

Similar Questions

  • How to reset the default mail program? When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens.

    How to reset the default mail program? Got msn.com. Now, I went to q.com. When I click to send e-mail to a box of 'Contact us' site web or excel sheet spread with addresses e-mail, a new msn email opens. Now, I get an error message: rundll32.exe - bad Image, followed by a message the the appklication or the DLL C:\Program FIles\MSN\MSNSharedFIles\MAILMAPI. DLL is not a valid Windows image. Please check against oyur installatiion diskette. I have msn unisnstalled.

    I can access my e-mail through hotmail msn, but no linger to subscribe to msn premium.

    original title: default e-mail program

    Hi PAULKRISSEL,

    This function is not supported natively in Windows. You may may find a third of the program that will change the default to q.com.

    WARNING:
    Microsoft provides no assurance or warranty, implied or otherwise and is not responsible for the download you receive from the sites of third parties or support related to the download or the downloaded technology. If you need assistance dealing with third party technology, please contact directly the manufacturer.

  • When I double click c:\ icon in my computer, it always invites me to choose a program to open it. How to open the icon c:\ automatically bypassing the prompt to choose a suitable software?

    When I double click c:\ icon in my computer, it always invites me to choose a program to open it.
    How to open the icon c:\ automatically bypassing the prompt to choose a suitable software?

    Rxtr,

    Welcome to the Microsoft Answers community. Some people have found a solution in the steps described in the disk opens on double-clicktroubleshooting.

    I hope this helps.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to make a paper with some boxes to fill required for me to sign, and then some other boxes needed for the next person to sign. I want the boxes I've filled to be locked the next person.

    How to make a paper with some boxes to fill required for me to sign, and then some other boxes needed for the next person to sign. I want the boxes I've filled to be locked the next person.

    Hi johanb64152807,

    You can use eSign service, where you can send the document for signatures of several signatories, but the document will be sent to the following signatory after the earlier signed & it is not possible for him to make the changes.

    Documents KB for help: -.

    Kind regards
    Nicos

  • How to rebuild the icon cache

    How to rebuild the icon cache? My icons randomly change on my computer.

    Hi ErikaVR,
     
    -Did you of recent changes made to your computer before this problem?
     
    This behavior can occur if the icon cache is not properly updated.
     
    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

     
    Follow the steps listed in this article to resolve the problem:
  • How to make the icons of programs appears on the screen of windows 8

    Hi Thunderlight, you helped me with my last request and thank you again now I have another question that you might be able to help me with.  How to make the icons of programs appears on my screen of windows 8?  I had to download the debut8 when I had windows 8 so I would have the appearance of windows 7 until I have to use Windows 8.  And some of my icons of windows 7 on my windows 8, but not all.  How to go on my windows screen 8 tiles?   I now get more usage of windows 8 and use it more now so would like all my original programs that I had with windows 7 on my windows 8 as it is now tile.  I thank you and hope you can help.

    Hi Laura,

    In theory, when you switch from an earlier version of Windows to Windows 8 - as your installed applications are kept by the upgrade process, except those who are not compatible - you should find all your apps in Windows 8.

    If they all do not appear on your start screen follow these steps to pin them there:

    • [Win] + C
    • Search
    • Click anywhere in the top middle of the screen to hide the charm bar

    All installed applications are displayed. They do not necessarily correspond on a single screen to use the horizontal "lift" to bottom of the screen to move to the right / left

    • Right-click on an application, you want to pin to the start screen
    • Click on Pin to Start at the bottom left of the screen

    You are finished. A mosaic of this application is available on the start screen.

    If there is an application, you are sure is installed on your PC and you don't think through the steps made me know - there will be more complex...

    If you install a new application under Windows 8 the corresponding tile is automatically added to your start screen.

    Hope this helps

    See you soon

    LZ.

  • How to activate the icon of speaker on the CONNECTED screen selection?

    How to activate the icon of speaker on the CONNECTED screen selection?

    Hi leross,.

    I don't know what app you ask on the sound settings for your Apple Watch.  But, in general, you choose your Apple Watch as a source for your music.  Once you pair your Apple Watch with a bluetooth headset, you will be able to adjust the volume.

    Listen to music on your Apple Watch

    Play music from your Apple Watch

    You can also enjoy the music on your Apple Watch without your iPhone when you pair with a Bluetooth headset. Open the music application, scroll up, then on your Apple Watch to choose it as a source. Then scroll down and tap one of these options:

    • Playback in progress. Play / pause what is currently playing on your Apple Watch.
    • My music. After a sync a playlist to your Apple Watch, you can browse your music by Albums, artists and songs.
    • Playlists. Follow the steps below to sync a playlist to your Apple Watch.

    Take care

  • How to make the icons of new office like netflix?

    original title: the desktop icons

    How to make the icons of new office like netflix?

    Access the Web from Netflix site > right click on a part of the page > create a shortcut > click YES to window next question re shortcut on desktop > is she.

    Double-click the desktop icon to access their web Page.

  • How to change the icon of the Application on Blackberry JDE 6

    Hi, do someone know how to change the icon of the application of the project, we have created in the JDE? I searched the forum, and suggestions should go to the project properties, go to the "resources" tab and add the icon file. I have also included the file icon (PNG 68x68pixel) to the project.
    But this does not seem to work for me.
    I also tried to build clean, remove files jad and others, always not when I tried the app Simulator or on real device. Any help will be appreciated.
    I use Blackberry JDE 6, test the application on the actual device (9800), Simulator (9700). And the app that I'm testing is just a pushscreen simple helloWorld app, not a lot of code here. Thank you.

    Here's how to put the icon in BlackBerry JDE.

    1. Add the image to your project.
    2. Right-click on the image and choose Properties.
    3. Check "use as icon for the Application.
    4. Rebuild the application.
  • How to find the e-mail address for my HP 6700? Printer shows E-Print connected.

    I am using the Forum to get a new code to the printer and the printer shows homepage that's on, but now I don't know how to find the e-mail address for my computer.

    Hello

    In the front of the printer, go to configuration. Locate and enter the Web Services. Aprove any step to activate the service... leave the system a few minutes to complete your registration, a page will be printed automatically with the code printer and directions to select the email address of hpeprint.com.

    Kind regards.

  • How to configure the e-mail address of the form home and contact me form

    How to configure the e-mail address of the form at home and contact me form. I got two WARNING when exporting my muse as HTML file

    Muse will give the alert message if the e-mail address used is not on the same domain as hosting many platforms is not supports the emails from the external domain.

    You can check with your accommodation, where they take over other emails from field so it will not be a problem and you can ignore the warning message.

    Thank you

    Sanjit

  • How to change the icon of the web in the browser window

    I created my site and cannot find how to change the icon in the browser window (as they have done at the top of this page with the icon of Adobe before the Adobe Forums: text) anyone would be nice to give me a little help?

    Do you mean the favicon?

    I only learned that recently about favicons myself - so if you google the word you will get a lot of resources to do this. Bascially, it's a little icon file located in the root directory of your site that browsers search and display for you. As long as the file is there (* named favicon.ico*) will automatically appear if I'm wrong in what I read.

    It's the thing you're looking for? (edit: it also appears in your list of bookmarks in firefox - if it isn't the one you want it is the favicon file)

  • How to save the e-mail records/e-mail on my computer

    I use hotmail to access my MSN account.  Would like to know how to record the e-mail records/e-mail on my computer

    Hello

    What operating system do you work?

    If the problem is specific to MSN, I suggest that you contact MSN support for assistance. Please see the following article on how to contact MSN Customer Support.

    http://support.Microsoft.com/kb/940784

  • How to create the icon on the desktop just for SilverLight?

    How to create the icon on the desktop just for SilverLight?

    Hello

    • Why is it you are wanting to create a shortcut?
     
    Silverlight is a plugin for Internet Explorer and other browsers, Windows Media Center is to allow video playback which supports silverlight. You cannot create a shortcut for the same.
     
  • How to change the icon of the application where the application focus?

    Hello guys

    I want to know how to change the application icon focus when the application.

    I know how to create the icon of the Application, such as insert icon-> properties-> use as the application icon.

    Do you know how to insert the second icon to the project?

    Please help me guys

    TNX'

    Hello

    Ago may messages on roll on icon.

    This is the KB article for the overview icon.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    KB article for icon creation.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

    TNX.

Maybe you are looking for