Pause program for a few seconds

I want my program to pause for like 5 sec before executing the next line. How can I do this? Thanks.

Thread.currentThread().sleep(milliseconds);

Similar Messages

  • Firefox hangs for a few seconds when trying to pause videos or skip ads on Youtube.

    Hello all!
    My problem is that YouTube sort of hangs for a few seconds when I try to pause a video or skip ahead or skip ads. The video freezes while the audio keeps playing until, after say 5 seconds, youtube finally does what I tell it to do.
    This doesn't happen if the video is embedded on a different website, nor does it happen on Vimeo, Dailymotion etc. I can play YouTube videos perfectly while using Chrome, IE and a Windows 8 Youtube app I have.
    After the initial freeze all commands start working very well, at least until I open a new video.
    I noticed that a lot of people are having trouble with youtube while using firefox and I've tried a few things:
    - uninstalling and reinstalling flash and java
    - starting Firefox in safe mode
    - using different antivirus software
    - reinstalling Firefox
    I read that this might be a problem caused by the whole Google being all buddy-buddy with Adobe thing, but I'm skeptical.
    So, is there any way to get YouTube to work properly?
    Thanks!

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    Profile Backup and Restore
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Whenever i try to play a video on my iphone, it pauses literally every 2 seconds. i will hit the play button, the video will play for a few seconds and then it will pause again. what can i do to fix this?

    videos will play for a few seconds on my iphone then it pauses. i press play and it pauses again. why is it doing this? and this is for all videos: youtube vides, videos off the internet, videos ive downloaded from itunes

    I can understand this with videos you are streaming, i.e. maybe you have a slow data connection.
    Videos on your phone should not do this.  Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.

  • TS3276 I use Mail for my email and lately, if I get an email coming in while writing one, the program freezes for a few seconds. Frustrating.

    I have a 27" iMac 3.06 GHz Intel Core 2 Duo. I use Mail for my email. Just in the past 2 -3 months, if I'm writing an email while another one is coming in to the inbox, the program freezes, the spinning colour ball appears and I can't continue typing for 5 seconds or more. I get and write a lot of emails so it's frustrating.
    I've also noticed that sending messages is taking longer than it used to. The program spins its wheels for a few seconds before sending. Definitely noticeably longer than prior to this situation. Any ideas anyone?

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • I made a DVD with photo's and music. On my Powerbook G4 he plays perfect. But after burning the project on my LaCie d2 lightscribe and show the project on my TV than after 10 min. the music stops for a few seconds.

    I made a DVD with photo's and music. On my Powerbook G4 he plays perfect. But after burning the project on my LaCie d2 lightscribe and showing the project on my TV than: after 10 min. the music stops for a few seconds. On the screen of the DVD-player I can see that after the word 'play' the clock starts again with counting the time. I tried everything: * burning slow. * all programs stopped, except iDVD. * all other apparature uncoupled. Is this a problem of my iDVD-program or my LaCie burner?

    mishmumken is correct about the 99 slides.  There's an 99 chapter limit in each slideshow for DVDs and each photo is considered a chapter.  iDVD gets around that by renaming slide 100 back to 1 and goes on. 
    The pause can be minimized (but not eliminated) by burning to disk at the slowest speed available: usually 4x or 2x.  Save the project to disk (File ➙ Save to Disk menu option) and play the disk image with DVD player to check out the transition at 99 and 198.  Then burn the disk image to disk with Disk Utility at the slowest speed possible.  Also use top quality media: Verbatium, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • Photoshop CC 2014 closes when start up for a few seconds

    Hi,
    When I try to open the Photoshop CC 2014. It will close after it has started up for a few seconds without any error message dialog in the Photoshop or error log in Event Viewer.
    I have just subscribed for the package Photoshop & Light Room combo yesterday and tried to install the Photoshop CC 2014.
    I have already tried to figure it out for at least 10 hrs in 2 days by searching all the solutions to this kind of problems and tried every means I could do, but nothing really works.
    What I have already tried are as follows:
    1. Un-install the ps cc 2014 with clear preference option and re-install it again with Creative Cloud application, but no luck.
    2. Update Nvidia graphic driver, which it has already been up-to-date, no luck. I even update the windows using window update center, but still get the same problem.
    3. Use Adobe Creative Cloud Cleaner tool after un-install the program. The cleaner tool works fine with successful message and no error message in the log file. Then, I try installing the ps again, but no luck again.
    4. Use the License Update Service tool, but no luck.
    5. Delete the opm.db and lunch the Photoshop again, but no luck, same problem.
    ***6. Rename the folder SLStore to SLStore_old. Open the program and it will ask me to license the software by signing in with my adobe account, it "works" only for the first time. However, once I close the application and open it again, same problem occurs, the program just closes right after I open it again. Now, I have to rename the folder every time I want to use the Photoshop.
    (By the way, this problem happen the same for the LR and now I have to re-name the SLStore folder every time I want to use the LR as well)
    It seems to me that I have some kind of the license problem, but I cannot understand why? and how to fix this?
    I am using Window 7 Ultimate 64-bit SP1 on my VAIO laptop.
    The specifications are Intel(R) Core i7 CPU [email protected], 6.0GB of RAM. The GPU is NVIDIA GEFORCE GT 425M.
    I really need to use the program and that is why I decide to purchase for the package, please help resolve this.
    Any help, any recommendation would be appreciated.
    Thank you.

    I found the solution to this from these thread Re: Photoshop CC opens and then closes immediately. What gives? and Re: Photoshop CC Crashes/Closes within seconds of startup
    I did it and it works for me So, I think I should share this so people who have faced the same issue as I can give it a try.
    Basically, Just uninstall the Photoshop and Creative Cloud, then rename the folder SLCache to SLCache_old. Restart your computer once and then re-install everything again. (CC and PS)
    It should work.
    Thanks

  • Music app stops playing for a few seconds then starts

    After updating to lollipop the music app would play for a few minutes then stops for a few seconds then play again, did not have issue with kitkat. Help please.

    It's back!!!!!! The problem went away for a few days now same issue. It only happens when I am listening to sound files on the headphones - sudden pause then restart in the middle of playing the sound file, this happens with different music/podcase apps. No issue with bluetooth streaming or speaker phone. So it appears there is a software bug with Lollipop update - never had this problem with KitKat. Factory reset does not fix it. I wish there was a way to revert the phone back to KitKat. Hoping the new Lollipop update would fix this.

  • Audio cuts out at times for a few seconds with VOD

    While watching VOD the audio will cut out at times when the program is playing.  I have reset the boxes, and router with no change.  I have read on a post that someone had pixilation issues and the Verizon techs hooked up a cat5e from the ONT directly into the router, which solved her issues.  Is this something I can do, and will it help my issues?
    Thanks, Charlie

    Today I tried to find the answer to my question, again... And tot my surprise I found it!! When I played music with winamp I saw in the systemtray that the Creative volumecontrol actually did mute the sound automatically for a few seconds. The reason for this I don't know. In de surround mixer I clicked standard. Music is playing ok now., no more interupptions. Seems to me something is wrong with the Creative software.....

  • Firefox freezes every few minutes for a few seconds.

    Firefox keeps freezing every few minutes, for a few seconds at a time. It's infuriating. It just happened right now while I was typing "infuriating". It's happened since I installed the Facebook Video Chat Plug-In, but I uninstalled that and it keeps happening.

    Probably an over active security or "cleaning" program that's kicking in every few minutes and messing with Firefox.

  • Itunes 7.0.2 won't launch just has hourglass for a few seconds...

    I am running a Dell Optiplex w/ Win XP Pro, Charter High Speed Security Suite (F-Secure) antivirus firewall antispyware stuff. Trying to upgrade itunes. Downloaded and installed without Security suite and firewalls etc. Installed fine. QuickTime opens and works except when I try to click on a movie trailer and it tries to open iTunes Store and it won't load the store. ITunes 7.0.2 won't launch. The hourglass shows for a few seconds and then nothing...no small pieces of anything popping up and going away really quick. Nothing. I don't have any other antivirus products on my system. I do have eTrust Pestpatrol antispyware but it has been disabled and was not active when downloading the product nor when installing the upgrade. All previous versions of iTunes worked fine. This upgrade to 7.0.2 will not launch. Any ideas?
    Thank you.
    Best Regards,
    Marlene

    I downloaded the program without any firewall, antivirus software or antispyware or antimalware running. I installed the same way. I don't have an active firewall through Win XP, my Charter Security Suite's firewall has always been instructed to allow all of the itunes, ituneshelper and Quicktime info through. I never had this problem with the other iTunes...only this upgrade. I have done virus, spyware, and malware scans (found a few with a deep scan, quarintined and deleted, restarted computer, still no change). My computer is up to date. I could update my Internet Explorer I suppose from 6.0.2. but that is something that shouldn't be stopping iTunes from launching. I have a P 4 with 2.4 ghz 256 ram of which I know I need to upgrade but still should not have a contributing factor in the launch. If it is, tell me and I will immediately upgrade. I don't get this one... ???? Forgot to add, I also tried another user account which had the same results.

  • Acrobat 7 freezes for a few seconds at every startup

    I am hoping someone can please enlighten me as to why Acrobat 7 freezes for a few seconds everytime the program is started.  If starting the program directly from executing the associated pdf file, the program loads the first page, freezes (stops responding) for approx 6 to 8 seconds, then responds to user interface again.
    It is not the machine as I have the same problem on many different machines.  Help please.

    Disabling hardware acceleration seemed to solve the problem. Thank you all very much, but before I close this thread as solved, I've always had that feature enabled to the best of my knowledge. Why did it suddenly cause problems?

  • Video only plays for a few seconds, then freezes

    The video, which I got from the apple website, plays fine in iTunes but once I upload it to the iPod it will only play for a few seconds before freezing and becoming nonresponsive. Is this a software problem? Anyone know of a solution? Thanks.

    Or you can follow these instructions.... (adopted from btabz)
    Here are more detailed instructions on how to go back to 1.0, espescially if you bought your iPod in the last couple of months and it came with 1.1.
    First, please download the older version of the iPod Updater here...
    http://appldnld.m7z.net/content.info.apple.com/iPod/ww/win/061-2225.20051128.PDW nw/iPodSetup.exe
    Now install that updater and restart your computer.
    Now open the iPod updater (Start-->all programs-->iPod and find the iPod updater you just installed
    Open the iPod Updater and connect your iPod. With that older version of the iPod updater you just installed, restore your iPod by clicking restore.
    The iPod will restore and go back to software version 1.0. Now reload everything back into iTunes.
    If you don't want to restore, see this...
    http://discussions.apple.com/messageview.jspa?messageID=1813873

  • LaptopSatellite freezes up for a few seconds

    A505-S6980 freezes up for a few seconds then continues, happens often, tried malware check, defrag,used CCcleaner.
    Removed software not being used.
    Another way to say it is it stops  responding for a few seconds then continues.
    Had computer about a year, just Started a few weeks ago.
    Any suggestion or thoughts?
    Solved!
    Go to Solution.

    Hard to read. Please retain the formatting. Thanks.
    Wouldn't hurt to uninstall Service Station. Most don't much like it anyway. Go to Programs and Preferences in Control Panel to do that.
    You could reinstall it after that if you like it.
       Toshiba Service Station
    Log Name:      Application
    Source:        TOSHIBA Service Station
    Date:          8/20/2010 1:01:32 PM
    Event ID:      0
    Task Category: None
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      Paul-PC
    Description:
    Error checking dependency [ee4f27b5-1013-43e1-844a-04cd16af3448]: Unable to retrieve registry value!
    -Jerry

  • Video Frozen audio works for a few seconds

    Hello all heres my problem.
    Video frozen on frame navigated too with the track bar.
    Audio works for a few seconds after the track bar is used then stops.
    Timer on the side dosen't incriment only changes when the track bar is used.
    Every time the video is paused and then played again the audio starts from the
    same place and stops in the same place again
    All videos are downloaded from itunes.
    Works fine in Quicktime.
    VGA Card: GTX 480 - drivers up to date
    Processor: AMD Phenom II - Quadcore
    Itunes Version: 10.7.0.21
    The whole thing strikes me as a failure of the video to increment the current frame and not a result of the failure in the video prossessing
    the short amount of audio is proably just buffered ahead of the video for syncing reasons.
    I have no real idea though but it is my best guess.
    Thank you in advance for any assistance rendered,
    Nargodian.

    Hi Thomas,
    Ok this does seem to say that the ports are set up and iChat is connecting properly.
    iChat also thinks there is enough bandwidth at the start and makes the connection.
    Is this to a PC ? Video freezes have been seen here when connecting to faster PCs.
    What you describe though sounds more like a PC that has not "Tuned" their cammera or Mic to the AIM Application.
    Ralph

  • Freezing for a few seconds after switching tabs, freezing for a second without doing anything.

    Hello
    I use Firefox v. 25.0 (If i remember correctly I had this problem at 24 too) and I my browser freezes for a few seconds, maybe every 10 seconds. It only freezes for about give or take, 3 or 4 seconds but it is starting to bug me.
    I have tried
    -> Safe mode - still happens in safe mode.
    -> Restarting firefox (multiple times) - The last few restarts I have removed/disabled any add ons or extentions. It always starts with out the freezing, but maybe after 1 or 2 days the freezing comes back again. This time I'm just half way done with it so I haven't bothered to disable much.
    -> Checking for multiple duplicated files in the firefox folder - didn't have any.
    I apologize that this is a commonly asked question, but I wanted to see if I could get any help here before having to move to chrome (which is not recommended from my sister), or internet explorer (which is in my recycle bin...)
    Thank you in advance.

    Although your IE shortcut might be in the recycle bin, you'll still want to have IE installed for those special sites that only support IE...
    Do you usually have a lot of tabs open? By default, Firefox updates the file which stores open windows and tabs every 15 seconds. The larger this file gets, the longer this takes. A major overhaul was made for Firefox 25 to make this more efficient, so this might not be your issue, but you can stretch the interval out to 60 seconds and see whether that makes a difference. Here's how:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box that appears above the list, type or paste '''session''' and pause while the list is filtered
    (3) Double-click '''browser.sessionstore.interval''' and change the value from 15000 to 60000 (this value is in milliseconds: 15000/1000 = 15 seconds, 60000/1000 = 60 seconds). I don't know whether this takes effect immediately or the next time you start Firefox.
    Does that help?
    If that doesn't make much/any difference, have you set up Firefox Sync?

Maybe you are looking for