Thread should exit the application, if the event is not triggered for some time

Hi all

I want to start the application thread, where I want to check the keypress or the Trackball events. If the event is not triggered for awhile, then the application must close.

It is possble?

Thank you

Use DeviceInfo.getIdleTime () to determine the time of inactivity. You can check it out in a timertask and kill your app with a reminder.

Tags: BlackBerry Developers

Similar Questions

  • How to make the splash screen to stay for some time the given sum?

    I wanted to keep the splash screen is displayed for say 3-4 seconds before he jumps to the next screen, could someone please suggest me a method to do this?

    Since by default the start screen is displayed for about a fraction of a second.

    I assumed that you do not want the default splash screen to display for longer... it wouldn't be much of that.

    If you have a custom splash screen and wants to appear again, just have your application display a copy of it that the only thing onscreen for the first few seconds, before switching to your main view. The search can show you that there areother threads that have covered the thi

  • I used the functionality of bookmark successfully for some time, however, just reciently I can't locate the function 'organize bookmarks '. It seems to be missing from the usual list of options.

    Have been using Firefox Bookmarks for awhile. Just noticed recently when I open the bookmarks that everything is there except the option to 'Organize Favorites '. I tried to rename a folder, but two names - organize bookmarks is missing from the top of the list.
    Is this good, unusual or the result of a virus or what?
    Should I reinstall Foxfire. I don't want to lose all the files.
    Appreciate any advice. THX

    In the Firefox Orange button > bookmarks > show all bookmarks > organize etc.

  • Running Max OS 10.7.4. And Firefox 14.0.1. If the Mac is left idle for some time, Firefox window shrinks, moves to the bottom left of the screen, sometimes disappears.

    In addition, may not submit comments via the site 'submit '. "Makes me sad", or 'made me happy' submit buttons work.

    Try to remove the plist of Firefox (org.mozilla.firefox.plist).

    Go to "~/Library/Preferences" and delete the plist for Firefox (org.mozilla.firefox.plist)

    Alternatively, you can check for problems with the file localstore.rdf.

    In Mac OS X v10.7, the file $HOME/Library is a hidden folder.

    Open Finder and use one of them:

    • Go > go to folder (command-SHIFT-G) and in the type of dialogue: ~/Library
    • Open the 'Go' menu and hold down the Option key to display the library
  • Program to my computer system restore does not work. He has not worked for some time now. I ran it many times try different restore points, but I found myself still receive the same error.

    I got the same error message every time and he'd jump upward after restarting my computer.  He said something to the effect that there is a kind of disruption that caused the program to close.  If the restore process did not in the end.

    Problems with system restore:

    http://Service1.Symantec.com/support/sharedtech.nsf/pfdocs/2005113009323013

    1. If you use Norton (Etc), disable it before using System Restore. info at the link above.

    2. try SR in safe mode:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    3 Malware will stop at the system restore:

    If necessary, do all of the above work Safe Mode with network.

     

    To get into Safe Mode with network, press F8 at the Power On / boot and use key arrow upward to get into SafeMode with networking from the list of options, and then press ENTER.

    http://www.Malwarebytes.org/MBAM.php

    Malwarebytes is as its name suggests, a Malware Remover!

    Download the free Version from the link above.

    Download, install, upgrade and scan once a fortnight.

    At soon Mick Murphy - Microsoft partner

  • I recently buy iPhone 6 s he'S / has and unfortunately the glass of my phone was broken, is it possible to change a new and that I should pay the penalty or not? Can you help me solve this problem? Thank you

    I recently buy iPhone 6 s he'S / has and unfortunately the glass of my phone was broken, is it possible to change a new and that I should pay the penalty or not? Can you help me solve this problem? Thank you

    See http://www.apple.com/support/iphone/repair/screen-damage/.

  • After installing the updates, event viewer says "Some of the updates are not applicable for this system"

    I have a laptop Toshiba Satellite L355D-57901.  I am running Windows Vista Home Premium SP2.  I have the updatedWindows updates in place so that I can revisit before installing.  After you install the updates, I noticed for some time that when I check myEvent Viewer , there are several errors indicating that "Windows Servicing identified that package (the number of update i.e. KB980436 (security update) is not applicable to this system .).   Can you please tell me why?  Thank you very much.

    Hi Simply4real,

    Check out the link below to a thread with similar problem and check if it helps.

    http://social.technet.Microsoft.com/forums/en-us/itprovistasetup/thread/c6883a0c-FF12-4bcd-86e0-4af3006eb7ce/

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • remove the pop up message "Waiting for in time real (target CompactRIO RT) to answer.

    Is there a way to remove the pop-up message "Waiting for in time real (target CompactRIO RT) to answer" what power is removed the cRIO or when the network cable is disconnected?

    Hey Danny,

    How did send you the commands to the Windows PC the cRIO? You use the remote FPGA host Interface?

    I've seen the pop-up dialog box when the LabVIEW project is not present.

    If you create a Windows VI that sends orders via shared variables or other network mechanism to a VI RT, which in turn controls your FPGA VI, then you should not ever see the popup you speak.

    This tutorial walks through creating an example of monitoring on cRIO with three screws as indicated:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/11199#toc4

    This tutorial is an example of the use of a shared variable to implement a heartbeat, to determine if the cRIO is connected:

    http://decibel.NI.com/content/docs/doc-11046

    I hope this helps.

  • The administrator password for all computers on the network does not work for ONE of the computers on the network

    original title: the computers of network/administrator password

    The administrator password for all computers on the network does not work for ONE of the computers on the network. I need to log on as an administrator to install software, but the password does not work. It works on other computers, but not this one. How is this possible and how can it be solved?

    Hello
    Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please refer to the below sticky

    http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd

  • T610 with Windows Embedded 7 - the system does not license for the operating system image

    Hello community,

    I bought a refurbished computer ThinClient T610 that is running a Windows 7 Embedded English. The label on the package says, that the computer ThinClient is allowed with W7E. When I now run Easy Tools installed on the computer ThinClient hp to create a USB Image with the German language, everything works fine: the image is downloaded from the web and put on the stick.

    But after you start the stick, the installation program tells me: "the system does not license for the operating system image. What I am doing wrong? The BIOS is already the latest.

    Or y at - it another way to transform the operating system in German? There should be an option to download additional languages, but this particual window has no other options. And I have not found any manual way to download other languages.

    Concerning

    Michael

    Sometimes it can be so easy... ;-)

    So here's my solution:

    1. go on the Web for hp Support site

    2. go in the software and driver download

    3. set the language of driver on the language of your choice (in fact: it was the main problem)

    4. download an operating system image

    5. run the configuration tool and copy the image of an operating system on a flash drive

    6. restart the workstation and install the os

    7. take advantage of your computer ThinClient in the language of your choice

    I don't know, why the hp Easy Tools downloaded the image of evil, but with this solution, that I find myself at the same point, as if they did.

  • my pc cannot accept the installation of antivirus, it shows that the system is not suitable for running ms Dos and ms windows app com help me install

    my pc has failed to install any antivirus it shows that the system is not appropriate for the execution of ms - back and ms windows application help

    Hello

    problems to install your anti-virus software, contact the manufacturer of the anti-virus

    also scan for Malware

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    You can also download and run rkill to stop the process of problem before you download and scan with malwarebytes

    http://www.bleepingcomputer.com/download/anti-virus/rkill

    If it does not remove the problem and or work correctly in normal mode do work above in safe mode with networking

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • My PC worked on Windows 8.1 with update 1 for some time, but is now back at the origin of windows 8.

    Original title:

    Derrick

    My PC worked on Windows 8.1 with update 1 for some time, but is now back at the origin of windows 8.

    I "lost" my Live Mail access and access to the photos.

    The version that it came loaded a whole mass of tiles/apps that I didn't need and I lost a number of applications and shortcuts, I had.

    How can I go back to the situation, I got up to 4 days ago please?.

    Derrick.

    Hi Derrick,

    You can manually check and install updates through Windows Update.

    Once the updates are made, you can install from Store Windows 8.1.

    For storage on Windows Live Mail folder, you can try the suggestions of the post http://answers.microsoft.com/en-us/windowslive/forum/livemail-email/how-to-recover-lost-storage-folders-in-windows/6fa3abe2-865a-e011-8dfc-68b599b31bf5

  • Error creating Absence as "APP-COMPENSATION-51271: the assignment is not eligible for the element.

    Hello

    "APP-COMPENSATION-51271: the assignment is not eligible for the item."

    Hi Nelly,

    You can see below the two things that can be the cause of this error:

    1. the definition of the non-recurring item link which is tagged with such an absence, as a best practice that should be an open link. If the definition of link and the eligibility of the assignment does not match then you may receive this error.

    2. If you have defined a regulation for this type of absence plan, then check if the recurring element of the regime of accumulation is was tagged to the assignment for which you receive this error.

    Thank you

    Sanjay

  • all rows in the table are not eligible for the specified partition

    SQL > Alter Table ABC
    Exchange 2 Partition P1 with Table XYZ;

    Modified table.

    SQL > Alter Table ABC
    Exchange 2 Partition P2 with Table XYZ;


    P2 Partition Exchange with XYZ Table
    *
    ERROR on line 2:
    ORA-14099: all rows in the table are not eligible for the specified partition

    The exchange partition works fine for the first time. However, if we try to swap the 2nd partition it gives the error.
    How to solve this error?
    How can I find the lines which are not qualified for a specific part. is there a query to find out the same thing?

    >
    Well, exchange of syntax and logic is not clearly as it should (IMHO). There is no element of syntax that tells Oracle we want to Exchange partition data in a table that is not partitioned or not partitioned into partition table data.
    >
    What? Not sure where you got that but maybe it was before you had first cup of coffee? ;)

    An "Exchange", it's just that; an Exchange. Partition data end up in the non-partitioned table and vice versa. It is meaningless and totally obsolete if "we want Exchange partition data in a table that is not partitioned or not partitioned into partition table data".
    >
    It was decided by Oracle not partitioned table control. If the non-partitioned table is empty, it means you want to Exchange data partition in a non-partitioned table. And if not partitioned table is not empty, it means you want to Exchange data in the table that is not partitioned into partition.
    >
    There is no decision to make. The segments are swapped. Oracle doesn't check, know or even care if one or the other or both segments are empty. 'Control' which is carried out (by default except if NO CONTROL is used) only consists of ensuring all the data in the segment intended for the partition belongs to this partition.

    It is what gives the example of John. This can NEVER work if table1 is empty unless p1 is empty at the beginning:
    1 Exchange p1 with table1
    2 Exchange p2 with table1

    As John explains, assuming that no other operations are trying to put the data from p1 P2 which is not possible if p1 actually contains data.

    You can save it for next April 1!

  • VixDiskLib_Cleanup always returns vixError (6) - the operation is not supported for the specified parameters

    Any ideas how we can determine what parameters it dislikes?  I am the appellant after VixDiskLib_Disconnect as recomment docs and using the same connection params struct I used with VixDiskLib_ConnectEx.

    Thank you

    -Ron

    UInt32 numCleanedUp = 0, numRemaining = 0;

    /= VDDK 1.1 header says connection spec should be null =/.

    connectParamsP - & gt; vmxSpec = (char *) NULL;

    vixError = VixDiskLib_Cleanup (connectParamsP, & numCleanedUp, & numRemaining);

    vixError (6) - the operation is not supported for the specified parameters

    Ron,

    I think that your connection is probably not use all transport advanced, in which case _Cleanup does nothing. If you connect without using advanced transport, cleaning returns 6 - there is nothing to clean up.

    Thank you

    Annick

Maybe you are looking for

  • Best player Thunderbolt

    Does anyone have suggestions for a good HDD Thunderbolt? Something 2 TB or larger?

  • Satellite Pro C660 - Synaptic Touchpad pinch zoom partially does not work

    Hey there, The laptop I have is a satellite pro C660 2I. I've had my laptop for a year (ish) now, and he always had this 'problem '. The touchpad has the ability to "pinch" which allows the user to zoom in or out using 2 digits on the touchpad (i.e.

  • How do send you emails to not disclose receipents?

    Original title: Receipents undisclosed How do send you emails to not disclose receipents?  I get emails addressed to the receipents not to disclose, but I don't know how I can send emails the same way. Barbara Hall

  • Inspiron 1525 Dell problem, try to repair Windows Vista

    Basically, my laptop saying something wrong when I try to fix it does nothing. He won't switch from windows. He will yet come. While when I thought can I reintall windows to facotry settings and maybe I can get back in.  This dell inspiron 1525. * or

  • BlackBerry Smartphones apps problem + upgrade

    Hello Can someone help pls. I have problems with the app world on my curve 8520. Everytime I go in there, he always tells me that continue to be updated, but still I can download apps from my laptop and only synchronize the blackberry no bother. When