Solution to the problem of the touchEvent and click

Hi all

Finally I found the solution to touchEvent and click on the question discussed here

http://supportforums.BlackBerry.com/T5/Java-development/problem-with-touchEvent-and-click/TD-p/58671...

I put my code based on navigationClick and also said a function void touchEvent() as shown below

protected boolean navigationClick (int status, int time) {}

code click event

}

protected boolean touchEvent (TouchEvent event) {}

}

Now I can easily detect a touch event on any area on my screen

Don't know how it works, but I'm getting the desired output

Afonso Tyagi

My code works now

Tags: BlackBerry Developers

Similar Questions

  • Firefox bookmarks bar does not allow me to drag-and - drop Web site icons. I went into the display and click on "bookmarks bar".

    Firefox bookmarks bar does not allow me to drag-and - drop Web site icons. I went into the display and click on "bookmarks bar". bookmarks bar but her but its not allowing me to drag and drop the icon on the toolbar. I tried everything it is supposed to do, but his does not work. his frustration.

    Stef. /. \

    Make sure the toolbars like the toolbar 'Navigation' and the 'personal bar' are visible.

    • View > toolbars
    • Right click on empty toolbar space

    Use the toolbar (Customize) to open the Customize and set the toolbar to display items.

    • Make sure the "bookmarks toolbar items" are on the personal bar
    • If "Bookmarks Toolbar items" is not on the bookmarks toolbar, then FRY it in the palette of the toolbar in the window the bookmarks toolbar Customize
    • If the missing elements are in the toolbar palette then drag them from the window, customize the toolbar
    • If you do not see an item on a toolbar in the toolbar palette and then click the button "Restore default" to restore the default toolbar configuration

    You can check the problems caused by a corrupt localstore.rdf file if the above didn't help.

  • using the '+' I'm unable to open additional tabs. If I use the file and click New tab it will open. I don't have the Ask toolbar. How can this be corrected?

    Before today, when I clicked on the '+' opens a new tab. She is no longer doing this. However, when I open the file and click on 'New tab' it opens fine. I don't have the "Ask Toolbar" as far as I know (this has been mentioned as a problem before). What can be done to fix this? Thank you.

    Can't really tell if it was useful or not. Before I had the answer, I rebooted and the problem disappeared. I appreciate the quick response and it will keep on file for future reference if the problem happens again.

  • Gel after the start and clicking on browser

    Recently, my computer hangs for a while after the start and clicking on my browser, why and what can be done?

    Hello

    See if this helps you improve performance.

    Search for malicious software with the FREE version of this program.

    This is the right link to download included.

    And does not accept the option "Pay for the version" trial installation

    Download, install, update and scan your system with the free version of Malwarebytes AntiMalware:

    http://www.Malwarebytes.org/products/malwarebytes_free

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    You can clean your hard drive using these two methods.

    "Delete files using Disk Cleanup"

    http://Windows.Microsoft.com/en-us/Windows/delete-files-using-disk-cleanup#delete-files-using-disk-cleanup=Windows-7

    Using the free CCleaner program:

    http://www.Piriform.com/CCleaner

    In NO case use the registry cleaning Option in CCleaner

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And it is not recommended to use a register or a program of cleaning/TuneUP/utilities they can do more harm to your any good operating system that they claim to be able to do.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Make sure you have the latest updated drivers:

    Access the site on your computer or equipment manufacturing > Driver and Software Support Section > search your computer or hardware model number > then your operating system > locate the correct drivers > download and install.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    What are the other steps, which does not include some of the above:

    "Optimize Windows for better performance.

    http://Windows.Microsoft.com/en-us/Windows/optimize-Windows-better-performance#optimize-Windows-better-performance=Windows-7

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    It would be a good idea also run the System File Checker tool to check that everything is correct in the system files.

    "How to use the System File Checker tool to fix the files on system missing or corrupted on Windows Vista or Windows 7"

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

    Use the (SFC.exe) System File Checker tool to determine which file is causing the problem and then replace the file. To do this, follow these steps:

    1. Open an elevated command prompt. To do this, click Start, click principally made programs, Accessories, right-click guest, and then click run as administrator. If you are prompted for an administrator password or a confirmation, type the password, or click allow.
    2. Type the following command and press ENTER:
      sfc/scannow

      The sfc/scannow command analyzes all protected system files and replaces incorrect versions with appropriate Microsoft versions.

    See you soon.

  • When I try to open the keyboard screen, I get the prompt and click to connect, but it does not connect.

    OT: On the keyboard interface.

    When I try to open the keyboard screen, I get the prompt and click to connect, but it does not connect. My hard keyboard is dysfunctional and now I can't type my password to connect. Is there a way to get around this? Thanks for any help.

    There is a problem with the KB3004394 update that causes what you see as well as other issues.

    Uninstall this update, your system should return to normal.

    While in Windows Update, select View Update History then installed updates. Go to the bottom of the list to KB3004394, right-click on it and choose uninstall.

    Microsoft has removed the update of the distribution.

    I would try to borrow a keyboard if you can so that you can perform the uninstall.

  • When firefox redirects and asks 'allow', which is the essential feature 'allow' compared to having to use the mouse to go up to the right and click on allow all the time?

    Firefox for mac tells me often (for security reasons I've enabled in preferences) that "firefox prevented this page automatically redirecting to another page. To 'allow', I have to move my mouse to the right of the screen and click "allow." There are not the essential functions, which is the same as the click of a mouse? With the help of the mouse is slow and takes off the navigation on productivity.

    You should be able to support on the a key to do so.

    The underlined characters informed program buttons the user that these characters are the keyboard shortcut.

  • I'm trying to export contacts as vcards icloud.  However, after that select the contacts and click on "Export as vcards" nothing happens.  Why?

    I'm trying to export contacts as vcards icloud.  However, after that select the contacts and click on "Export as vcards" nothing happens.  Why?  I tried this using edge and chrome and I run Windows 10

    I just tried with edge on Windows 10. I selected all the contacts, and then click Export, as vCards and nothing happen. Clicked on it again, still nothing. After 4 or 5 click on about 10 to 15 seconds he finally uploaded to the file Edge uses for downloads. I saw it happen before you go to a Mac using the Safari browser, but only 2 clicks were necessary.

  • How to add the same name of datagrid records, while I'm by selecting one of the check and click Add end to end

    Hi friends,

    I do flex mxml 4 web application with as3, I am struck upward in the next concept, shar your suggession thereon.

    I use datagrid with 3 columns NUMBER, NAME, AMOUNT. an and a box Add button and a delete button.

    I have two records in the same name in the grid, when I click on a record in the grid and click ADD means of button this year, both AMOUNT WILL ADD records that record with the same name and give this value in a text box.

    How to do this?

    useful suggesssion or sample modal

    Thanks in advance,

    B.Venkatesan.

    Hello

    var totalsum:int = 0;

    var index: int = db.selectedindex;

    var selname:string = bd.dataprovide.getItemAt (index) .name;

    var totallen: int = (db.dataprovider) .length;

    for (var i: int = 0; i<>

    {

    var checkduplicate:string is bd.dataprovide.getItemAt (i) .name;.

    if(checkduplicate==selname)

    {

    totalSum += bd.dataprovide.getItemAt (i). AMOUNT;

    }

    }

    textfield_id. Text = totalSum

    ---------------------------------------------------------------------- ----------------------------

    Gallot Hiroji | [email protected] | www.isacglobal.com

    ---------------------------------------------------------------------- ----------------------------

  • A possible solution for the Date and time January 1, 1970 Bug?

    I fell for a scam currently floating around the Internet, this type of scam to change the date and time of an IPhone on January 1, 1970 made my IPhone stuck in a boot cycle. people use the term "brick" of the nature of bugs. I was curious if there is no fix?

    Put the phone in DFU mode:

    http://www.payetteforward.com/how-to-put-iPhone-DFU-mode/

    You will then need to reload all your data from your back upward.

  • Jump to the slides and click Inbox limits!

    Hello

    I have created an online manual in the CP6 and want to have a slide of table of contents with links to the relevantslides throughout the project. It's pretty small - 42 slides in total. I'm creating HTML5 out to run on iPads. There are a few problems...

    OK, I've created the table of contents in the form of text boxes, and then adds a hyperlink to each entry to access the required slide. When I look in prview, everythuing is good. When I publish HTML5, all breaks go to different slides.

    So I tried a workaround solution - put in the table of contents in the form of text entries, and then add a box to click on each one to access the required slide. This makes the jumps work in HTML5, but if there are more than 17 hyperlinks on the slide, all that goes down when opened on an iPad.

    Everyone knows one of these, and someone has a workaround solution.

    Thank you

    Greg

    Hi Greg

    I've not seen this in a long time, but this does not mean that it can't happen.

    A few years back we would see where links to the slides would become inconsistent if the slides were changed later. And the fix for that had to make sure that you appointed first of each slide. Then I created the link. With the slide named, it sort of 'locked in' the link so it would remain intact when you rearranged slides.

    Now, I know you specifically said you've done any reorganization of the slide. What you see is a potential "characteristic" (read bug) with Captivate.

    So, you might try providing each of your slides of destination have been appointed. The text or boxes click on a link to the slides and see if the situation improves everything. Maybe it will be and maybe it won't, but it is worth it.

    See you soon... Rick

  • I don't get updates to windows, I used the system and clicked on update

    I clicked on the automatic updates - have not received any...

    You must be level SP3 before you use Windows update.

    http://support.Microsoft.com/kb/2497281
    You may be unable to access the site Web Windows Update in Windows XP, Windows 2000 or Windows Server 2003

    To determine which service pack is currently installed on your computer, follow these steps:

    1. Click Startand then click run.
    2. Copy and paste, or type the following command, and then click OK:

    winver

    A dialog box displays the version of Windows and the service pack that is currently installed on your computer.

    If you haven't already done so, you will need to install the SP2 and SP3 (SP1 note no longer exists).

    How to obtain the latest Windows XP service pack
    http://support.Microsoft.com/kb/322389

    SP2 - http://www.microsoft.com/en-us/download/details.aspx?id=28 (for single PCs too)

    For Windows XP Service Pack 2 installation procedure
    http://support.Microsoft.com/kb/875364

    Steps to take before you install Windows XP Service Pack 3
    http://support.Microsoft.com/kb/950717

    It is stated in "How to obtain the latest service pack XP" is.

    If you have problems obtaining the service pack from Windows Update, you can download the package of standalone update from the Download Center. This page will say that this installation package is intended for it professionals and developers. However, you can download this file safely. The following file is available for download from the Microsoft Download Center:

    Download the Windows XP Service Pack 3 package now

  • I'm getting error .exe - image incorrect when I start the computer and click on anything

    I keep on getting error bad .exe continuous Image on my Windows XP machine. Help, please

    Hi leondsouza,

    1. What is the exact error message that you receive?

    2. did you of recent changes on the computer?

    3. do you have security software installed on the computer?

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you put the computer in a clean boot state and check if it helps.

    To help resolve the error and other messages, you can start Windows Vista or Windows 7 by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See the link below to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

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

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • How to click to view the object and click to hide the object

    I'm very new to Flash and I create an ad that has a simple animation that cycles between two pieces of content. I including, but I have a button on the lower part called 'Important information' and clicking on, I want to bring up a screen that displays important information. I want there to be a 'Close' button on the important information screen, which brings back you to the animation. What is the best way to do it? I have trouble finding a tutorial, but for me, it doesn't seem like a rare action.

    With the help of professional Flash Action Script 3.0 and CC 2015

    There are several ways to do it, but all require that your screen is an object.  a clip that you create in the IDE would be typical.

    Add the movieclip on the stage where you want it to appear and assign it an instance name, for example info_mc.

    during your use of actionscript Panel:

    removeChild (info_mc);  to remove the display info_mc and the addChild (info_mc) to get it back on top of everything else.

    for a button trigger info_mc reappear:

    btn.addEventListener (MouseEvent.CLICK, infoF);

    function infoF(e:MouseEvent):void {}

    addChild (info_mc);

    }

    the code for the close button will also call a listener function that executes removeChild (info_mc)

  • Selection of the table and clicks by only clicking on the row in the table

    My dilemma is that we create an interface that is a touch screen interface. It's base table. Currently, I have a button integrated in each row of the table when you click the button, it takes you to a selected line details window. What I want to happen is to completely remove the button and have the line to act as a button - you click on the line (anywhere in the line) and the action takes you to the details screen - the same model as the use of smart phones. I have the table selection listener in support of bean (hanging on a generic selection listener that I created) and selection of listener method calls the string that starts the movement of workflow. I there prints that tell me that these methods are called, but I don't get any action when I click on the row in the table.

    This is the code in the .jsff file:

    + < af:table value = "#{bindings.drives.collectionModel}" var = "row" + "
    + Rows = "#{Bindings.drives.rangeSize}" +.
    + EmptyText = "#{Bindings.drives.Viewable?" "{'No data to display.': 'Access Denied.'}". +
    + fetchSize = "#{Bindings.drives.rangeSize}" +.
    + rowBandingInterval = "1" id = "t1" rowSelection = 'single ' +.
    + width = '100% ' contentDelivery = 'immediate ' +.
    + columnResizing = 'disabled' autoHeightRows = '30 ' +.
    + columnStretching = "column: c7 ' disableColumnReordering = 'true ' +.
    + selectionListener = "#{DriveBean.onSelectionChange}" +.
    + partialTriggers =': t1 "> +"

    The 'onSelectionChange' method looks like this:

    + ' public void onSelectionChange (SelectionEvent selectionEvent) {+
    + GenericTableSelectionHandler.makeCurrent (selectionEvent); +
    + goToDriveProperties(); +
    +}+

    + public String goToDriveProperties() {+
    + return "gotoProperties"; +
    +}+

    The GenericTableSelectionHandler class looks like this:

    + public class GenericTableSelectionHandler {+
    + public GenericTableSelectionHandler() {+
    + super(); +
    +}+

    public static void makeCurrent (SelectionEvent selectionEvent) + {+
    + Table richeTableau = (RichTable) selectionEvent.getSource (); +
    + TableModel CollectionModel = (CollectionModel) table.getValue (); +
    + JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding) tableModel.getWrappedData (); +
    + DCIteratorBinding tableIteratorBinding = adfTableBinding.getDCIteratorBinding (); +
    + Object selectedRowDate = table.getSelectedRowData (); +
    + JUCtrlHierNodeBinding nodeBinding = selectedRowDate (JUCtrlHierNodeBinding); +
    + Key rwKey = nodeBinding.getRowKey (); +
    + tableIteratorBinding.setCurrentRowWithKey (rwKey.toStringFormat (true)); +
    +}+
    +}+

    I don't know what to do with that to initiate this movement of workflow. Can someone help me?

    The method used for navigation is NOT the navigation to the required page.

    public String goToDriveProperties() {}
    Return "gotoProperties";
    }

    Instead, call the navigation pro-grammatically Manager as follows:

    * public String goToDriveProperties() {*}
    FacesContext context = FacesContext.getCurrentInstance ();
    context.getApplication () .getNavigationHandler () .handleNavigation (context,
    NULL,
    * 'gotoProperties'); *
    }

  • Sometimes when you try to click on a link, instead of the hand, I get the arrow and clicking on sending me to the scam site. How can I fix it?

    This happens with many different sites, but only occasionally. I reloaded Firefox, run Norton Utilities, Malwarebyes Anti-Malware program several times. Scam sites vary, false updates of Firefox, bidding sites, a lot of different. If I wait about 30 seconds, the arrow goes to a hand and I can click to get to where I want to go. I can simply close the scam site and hand returns to the site of origin.

    Help!

    Thank you.

    Matthew

    You have MyWordTool in your list of extensions. Malwarebytes should detect it.

    You can try to remove it from the Add-ons Manager (press Ctrl + Shift + A to open it), category of Extensions. If this is not possible, then try to uninstall from the control panel while Firefox is closed.

    You can try Malwarebytes Chameleon, which gets Malwarebytes Anti-Malware running on infected computers. Don't forget to check for definition updates after installation.

    I also note that you have two extensions of Norton disabled. You may want to reactivate if you have disabled them yourself, or looking for updates if they are disabled because they are incompatible with your version of Firefox.

    If the problems persist, there are other tools, you can try and forums specialized in the removal of malware. See the section "How to get rid of malware?" in the following article.

Maybe you are looking for