Call a thread after a specific interval of time?

Hello, any help is appreciated...

I use this to call my thread each time interval... .but I noticed that if my request is at bottom the timertask won't calls on the interval specified... sometimes its end a minute | 5 minutes | 10 minutes...
Is there a better way to run this.
This is the code:
TimerTask _tt;
_Timer timer;

_tt = new TimerTask() {}
public void run() {}

new FlightCheckThread (_sqlmanager) .run ();
} / / end of race
};
_Timer.scheduleAtFixedRate (_tt, 180000, 300000);

Run is not the right way to start a thread's start().
like the timertask documentation notes that it is not intended to block stains, using start() should solve the problem of synchronization.

Tags: BlackBerry Developers

Similar Questions

  • Get the GPS Position in a specific interval

    Hi BB-Devs,

    I m developing a BB10 application where I use the GPS location Services.

    I need to update my current position in a specific interval.

    First of all:

    In the corrugation Simulator, everything works fine. My position will be refreshed every x seconds.

    Yesterday, I deployed my application with debugging token to my Z10.

    It seems the app works.     BUT:

    When I change my position, the new position will not be updated as in the Simulator :-(

    In my console log, I see that my function is called every x seconds.

    Here is a code snippet of the function that is called in the intervall:

    function setAktPosition() {
        //First test to see that the browser supports the Geolocation API
           if (navigator.geolocation !== null)
           {
              var options;
              navigator.geolocation.getCurrentPosition(setAktPositionSuccess, setAktPositionError, options);
           }
           else {
              alert("HTML5 geolocation is not supported.");
           }
    }
    
    function setAktPositionError(error)
    {
       alert("An unexpected error occurred [" + error.code + "]: " + error.message);
    }
    
    function setAktPositionSuccess(position)
    {
       //Extract information about the users current position:
       var time = position.timestamp;
       var coordinates = position.coords;
    
       //Retrieve geographic information about the GPS fix:
       ap.valueLat = coordinates.latitude;
       ap.valueLon = coordinates.longitude;
       ap.valueAlt = coordinates.altitude;
       ap.valueSpeed = coordinates.speed;
       //var acc = coordinates.accuracy;
       //var altAcc = coordinates.altitudeAccuracy;
       //var head = coordinates.heading;
       refreshMap();
    }
    

    That's how I got to call this function in a specific interval:

    aktiv = window.setInterval("setAktPosition()", intervallInSec);
    

    However - the works of the intervall-function-call - but my application still get the top position - no update of position when changing my situation :-(

    Corsica, I did this in my config.xml file:

    
       access_location_services
    
    

    My application has requested when starting fist approvals of the location. I also checked this in the settings of the device of my Z10.

    Are there problems with the GPS location services in the webworks for BB10?

    Or is it not possible to achieve?

    I will be happy if anyone has any advice for me :-)

    Thank you very much!

    Lars.

    Try changing the options to activate enableHighAccuracy

    https://developer.BlackBerry.com/HTML5/APIs/positionoptions.html

  • Refreshing a report APEX region automatically after the specified interval

    Hi all

    I have a region report on my page that I would be refreshed after every 5 seconds auto. The data in the underlying table reports is generated using a procedure. I need to call the procedure after all 5 seconds which will refresh the table, and then the region report must refresh too which will display the updated data.

    Currently, I call the procedure in a front header process that generates the data of the table used in the report:

    I added the following code to the footer area. (I found the code in the report Oracle APEX refreshing simplicity ' Warp11.:. ") The Oracle Apex knowledge group)

    < script type = "text/javascript" >

    <!--

    setInterval ("jQuery('##REGION_ID#').trigger ('apexrefresh');", 5000);

    ->

    < /script >

    How would have managed to perform the procedure after every 5 seconds or more. ? I can only really see if the above code works once the procedure call is repeated after an interval, so I don't know yet if I'm on the right track or not.

    I would appreciate any help

    Concerning

    Dominic

    What apex version do you use?

    Have you tried to put a static region on your area ID and modified the script to refer to this region id?

    for example:

    setInterval ("jQuery('#p1_my_region').trigger ('apexrefresh');", 5000);

    I'm not sure what alternative strings still works, it's best to simply make reference to your own code.

    Edit: using a dynamic region in pl/sql or a classic report based on your data?

    I think you need to provide more information about your problem, so as to avoid the problem of xy suggested previously

  • The call to phone after update 9.2

    I was unable to do a phone call last night after iOS 9.2 update.  The call started out as usual, but there was no ringing sound.  Connection clock started after a few seconds, but nothing can be heard by the other end.  After a few tent, a call gave no ringing, the beginning of the clock to connect but the other voice of end was cut in jerks every second or more.  I finally gave up and used my landline to call.

    I am very disappointed with this update!

    I've just updated a few hours ago and had exactly the same problem.  When you place phone calls, no noise ringing.  When connecting clock started, there was still no sound.  When I type speaker I got sound cutting in and out.

    I tried to turn on and the problem has been solved for me.

  • Restricting calls between a subarea and specific extensions on Cisco VCS

    Hello, I use Cisco VCS 8.5.3, my goal is to restrict calls between a subarea and specific extensions.
    I tried following solutions:

    1. Download of XML strategy
    2. Use of political appeal web interface in order to limit calls

    XML file:


     
     


     
       
       

       
       

       
       

         
       

       

     


    But when I apply the XML file, or try using the web simple rule (for example: 11111 12222 destination source, dismiss the action) I'm still able to place the call to 11111 to 12222.

    What can be the cause of the problem and what else can I try to be able to prohibit calls between a particular Subzone and exentions?

    Attached, is an example of CPL script that should work.  Using this script, CPL, I was able to block calls to a subarea set to a destination alias located in the subzone of default and was always able to call any other end point in the default subfield without problem.  Note that you must enter the name of the subarea, as you have configured on the VCS, including spaces if they exist.

    The scenario is based on the example of CPL "limiting access to a local gateway" X8.5 VCS Administrator's Guide on pg 413, other documents of CPL reference and examples can be seen starting on pg 410.

  • Interval of time Machine

    How can I set the interval of time machine.

    Hi peterfromerlangen,

    I understand that you want to change the time interval when Time Machine backs up your Mac.  You cannot change the interval.  However, you can disable automatic backups and choose to manually back up your computer when it is most convenient for you.

    Use Time Machine to back up or restore your Mac

    Backup using Time Machine

    After you set up Time Machine, it does automatically hourly backups for the past 24 hours, daily backups for the month past and weekly for the past few months a whole. Older backups are deleted when your backup drive is full.

    • To back up now rather than wait for the next automatic backup, choose Back Up Now from the Time Machine menu .
    • To stop the automatic backups, turn off time Machine in Time Machine preferences. You can always back up manually by choosing back up now from the Time Machine menu.
    • To pause a backup, choose Stop Time Machine backup on the menu. To continue, choose Back Up Now.
    • To check the backup status, use the Time Machine menu. The icon shows what Time Machine backup , slowed down until the next automatic backup , or unable to finish the backup .
    • To exclude the elements of your backup, open Time Machine preferences in the Time machine menu, click Options, and then click Add and select the item to exclude.

    Your first backup may take a while, depending on the number of files you have. You can continue to use your Mac while a backup is in progress. Computers Mac some make backups, even while you sleep. Time Machine backs up only files that have changed since the previous backup, so future backups will be faster.

    See you soon,.

  • What is the interval of time between the virtual machine Linux and ESXi host synchronization?

    I have ESX5.0 with a centos6 installed on this linux virtual machine.

    After the installation of vmware for Linux virtual machine tools, I activated the time synchronization between the virtual machine linux and ESXi host through vmware-toolbox-cmd.

    I wonder what is the interval of time between the virtual machine linux and ESXi host synchronization? If I quickly time OS system, when the OS system time will sync back to the ESXi host?

    According to http://www.vmware.com/files/pdf/techpaper/Timekeeping-In-VirtualMachines.pdf:

    By default, the demon checks the guest only once per minute operating system clock.

    However, depending on whether the guest is behind or in front of the result is different. So, please read the section "periodic synchronization" (at least) in the document mentioned above.

    André

  • How flow automatically from one page to another (on a specific date and time)?

    I'm doing a site that has multiple pages. Each page will have an image full screen. (it's a calendar) I wish I could have my pages change at specific times throughout the day. Is there a way to muse to tell when pages change?

    I believe you are referring to change image on the specific page of time in a day.

    Please refer to this post for more details:

    https://forums.Adobe.com/thread/1757607

    Thank you

    Sanjit

  • HP ENVY 15-j023cl Notebook PC: PC off (supposed overheating, no message appears) after a short period of time

    Hello

    A problem that has been doing worse and worse for me was that my PC turns off completely after a short period of time, now about 1 hour. I used to have the same problem, however, it turns off after 4-5 hours, and after that it is completely stopped for a few hours, he'll be back to normal. I read that dust accumulation can be a problem, although I see no dust in the vents. Do you advise me to open the computer and dust off the fan itself inside the computer with compressed air? Or are there other possibilities of dust collection problems will not fix?

    Before I provide documentation for troubleshooting @Pokeyster, I would like to take a moment to welcome you to the HP support community!

    I'll do my best to help you to solve the problems of closing you met on your HP ENVY 15 - j023cl Notebook PC.

    You asked if the dust can be a factor. The answer is absolutely! I saw him in the past when the reason for the complication was dust in Notepad. I recommend that you keep the free portable dust on a frequent basis.

    Please use the links in the questions below to troubleshoot and then re-post with answers to troubleshooting questions/results.

    Have you tried running in Safe Mode?

    Did you do a BIOS reset?

    Have you tried to do a disk defragment?

    Have you tried to do a Disk Cleanup?

    Please try to clean the events your Noteobok MNI

    Is the noisy fan or turn constantly?

    Is the hotter than normal PC?

    Have you tried tests to hardware failures?

    Here are a few documents for you that can help:

    If this post helps you solve the problem, please pay to the front by clicking on the button accept as Solution , right of the thumbs up icon. You can click on the Thumbs up icon to show your appreciation for my efforts today!

    If you need assistance, I would be more than happy to continue to help. When you re - post, please provide me with the detailed results of the above troubleshooting.

    Thanks for joining in!

    Have a wonderful day!

  • About half the time an incoming call makes my phone ring; half of the time (unpredictably), it just goes straight to voicemail. How can I fix?

    About half the time an incoming call makes my phone ring; half of the time (unpredictably), it just goes straight to voicemail. How can I fix?

    Check: Settings - do not disturb = Off?

  • I think that 2 albums have been recently removed by the wind. Live Photo Gallery. I do not remove them. Albums are automatically deleted after a certain period of time? Thank you!

    According to me, that all my albums have been recently removed by Windows Live Photo Gallery. I did not remove the myself. Albums are automatically deleted after a certain period of time? Thank you!

    Submit all Live queries on the forum right here:

    Windows Live Solution Center
    http://windowslivehelp.com/

  • WVC80N hangs or stops working after a short period of time

    Hey there,

    I created my WVC80N yesterday.  Went to a couple came back, he was frozen, no new video.  He did this ever nonstop.  I had to reboot the computer to make it work again. Obviously a big problem, but one that I hope there is a fix for or can I do something wrong.

    I use win 7 and tried both the software supplied with the cam and webcam xp5, they both lose the connection with the cam after a short period of time.

    Thanks for any help on this one,

    CR

    @crjb1, have you got it working under Linux?  I tried for about a week without result.  I noticed that Linksys-Cisco offers a GPL had driver/module for the wvc54gc, but not for the wvc80n.  Maybe I would have thought a little before you get all excited and buying this.

    The video quality when connecting to the web server of the camera is fine, but I can't get a stream using zoneminder video or else and the RTSP protocol feed doesn't seem to work at all.

  • The internet connection is lost when the computer puts itself to sleep after that idlen too long time needs to restart to re-establish the connection.

    I lose the internet connection

    Window vista Home premium intel core 2 quad CPU q6600 @ 2.40 ghz, 3.00 GB ram the System 32-bit

    The internet connection is lost when the computer puts itself to sleep after that idlen too long time needs to restart to re-establish the connection

    Hello

    Control Panel - device - network - manager double-click the used network - power management device
    Tab - uncheck the computer to allow him to turn off the device.

    Control Panel - Power Options - check at each change of diet Plan - change Plan settings - advanced
    Power settings - check the settings there.

    You may reset the default power Plans and and then change them as needed.

    How to restore the default power in Vista (and then go back and change as you wish)
    http://www.Vistax64.com/tutorials/198047-power-plan-restore-default-settings.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How to plan to clear all alarms in Foglight on a specific date and time?

    Here's what I want to accomplish informing a group of people that all alarms will be erased and then foglight removes all the weapons on a specific date and time

    ..

    1

    I'd like to be able to plan / create a rule or any other option available to use... to be able to send an email through foglight or notification to a specific group of people telling them that all messages will be deleted.

    2nd

    What I'm looking for must be able to clear all alarms in Foglight to a date and a specific time.

    I just noticed this has not had a response.

    I hope that you could see the information contained in the KB, some items may have been written there so I recommend for anyone who wants to use it to test on a test server or check with the support, if there are recent scripts.

    How to purge the alarms? How to program the purge of alarms? (40651)

    Clear the alarms then X days (74729)

    How to clear alarms command line? How to program the clearing of alarms? (51324)

    Is there a way to clean only certain rules specific alarms? (73003)

    How to accuse reception/Clear old messages older then X number of days automatically (72146)

    Regarding the sending of notifications on a schedule, I think the simplest if to set that plan and create a rule with a true value, which is only applicable to this annex (annex rule or rule that is valid on a precise timetable) and has the action to send the notification to users on the alarms about to be cleared/purged.

    Hope this helps

    Golan

  • Dell Inspiron 531 - summer pc try to restore factory settings and hit the F8 key after close to a dozen times. I never see the advanced options to choose the factory restore. HELP please...

    tried to restore factory settings and hit the F8 key after close to a dozen times.  I never see the advanced options to choose the factory restore.   HELP please...  I'm following indications out of Dell's web site as well.    UGH

    http://support.Dell.com/support/topics/global.aspx/support/DellCare/contact_us?c=us&l=en&s=Gen&redirect=1

    If you have problems with the process of recovery of Dell, contact Dell at the link above.

    It's Dell recovery, not Microsoft software/process of.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Concerned about the performance of the battery Ipod 6

    Hello!. Please tell me your thoughts on this because I have no idea about. I bought a new Ipod 6 a week ago. I think that the battery is not give the performance of desire. He's dead, and after a charge noticed that drain you very quickly. So I turne

  • Yahoo mail does not load in the new version of FF!

    Since the new version of FF (40.0.2) I can not open yahoo mail. I have try to disable noscript and adblock, but nothing. In old portable version of FF 33 site works very well. Can you tell me what wrong and why new FF disable access to yahoo mail?

  • cannot open excel file 2009

    Hello Recently, I upgraded my machine to LabVIEW 2009.  I had already created a file of sequence that were running on LabVIEW 8.5. However when I run on LabVIEW 2009, it fails to open an excel template that I use to store the results.  In fact I can'

  • Windows 7 and HP deskjet 720C

    Hi, can anyone help please. Yesterday bought a new laptop with windows 7 installed. Installed the printer, said ok installed in Device Manager, but wont print. Thanks, Peetie

  • Wmp54g - Wireless-G PCI Adapter - Local access only - why?

    Management of Linksys, I replaced one of the adapters Wireless USB model with this model (WMP54G - Wireless-G PCI Adapter).  While the USB model has been able to get on the internet, but by dint of low signal at slow speed resulting - this unit has a