Problem in Timer Rescheduling

Hello J2MEians
I am implementing a midlet program. This is what I do...
Make a HTTP connection to a streaming server to get 40 images at a time and then display those images on the imageitem in the midlet.
Display of these images is done by a timer implemented by a timertask.
The problem is sometimes HTTP connection takes time to fetch images so I had to delay the time of showing these images . Hence i want to reschedule my timer. But i'm surprised to see that there is no reschedule function for timer in J2ME.
I implemented the same thing in applet where i use to first stop the timer by timer.stop(); then set its delay by timer.setDelay(xxxx) and then again starting it by timer.start(); . It was so easy , the next task is executed with the new delay.
But I am unable to such kind of thing in J2ME.
Please help in solving my problem
Thanks in advance
Manu

i guess this will give u some idea:
class mainclass extends canvas
Timer timer = new Timer();
Task tt= new Task();
static long count=0;
mainclass()
{ //scheduling afetr 1 sec
timer.schedule(tt,0,1000);
///////////////////////innerclass////////////////////////////
public class Task extends TimerTask{
public final void run()
count=count+1000;
if(count>10000)
//do your job
}//end of run
///////////////////////innerclass////////////////////////////
public void keyPressed(int keyCode)
{//resettng
count=0;
}

Similar Messages

  • I am having an MacBok Pro 13inch,having an Startup Problem, the time i press the power button after few seconds the apple symbol appears w/a loading sign below it

    i am having an MacBook Pro 13inch  , having an Startup Problem , the time i press the power button after few seconds the apple symbol appears with a loading sign below it and wont go further ahead of it . My data is all in the hard drive .. . I even tried the Internet recovery but no use !!!! but still no respons and the recovery and macintosh hd is now lock! but earlier only the recovery is lock and after both of them is lock.  i can reinstall,... and i didnt try to back up any data bec i dont know how? so please help me to resolve my prroblem.?

    luoie wrote:
    This thing happend,, it say Disk utility stopped repairing "Macintosh HD" disk utility can't repair this disk
    Sorry, possibly you need a new hard drive or try reformating. First
    you can try something like http://www.alsoft.com/diskwarrior/  it has been known to repair disk that DiskUtility could not. YMMV and they don't give it away.
    If Disk Warrior can not repair then you need to Reformate the drive. Make sure you have a back-up in place no matter what.
    http://www.apple.com/support/backup/
    Disk Utility will tell you something about it's SMART status:

  • When I attempt to open lightroom I recive this message: [ Lightroom encountered an error whenreading from itspreviw cache and needs to quit.Lightroom will atempt to fix this problem next time it launches.] I did this a few times but no resoulve

    When I attempt to open lightroom I recive this message: [ Lightroom encountered an error whenreading from itspreviw cache and needs to quit.Lightroom will atempt to fix this problem next time it launches.] I did this a few times but no resoulve

    It isn't a file, it's a folder. It will have the same name as your catalog, but will have the extension data. It will be in the same folder along with your catalog. If you need to use the search feature to search for *.lrdata.

  • Lightroom encountered an error when reading from its preview cache and needs to quit.   Lightroom will attempt to fix this problem next time it launches. " But it doesn't fix it!

    I get the following window on loading Lightroom 5.7 -
    Lightroom encountered an error when reading from its preview cache and needs to quit.
    Lightroom will attempt to fix this problem next time it launches.
    I have tried several restarts, without success. Also reinstalled Lightroom; no joy
    Any suggestions?

    Using your system browser (Windows Explorer or Finder), open the folder that contains your catalog. In Windows it is in your pictures folder and then in a Lightroom folder. Inside of the Lightroom folder you will find another folder that has the extension .lrdata. It will have the same name as your catalog except for the extension. You need to delete that folder, and then start Lightroom again. Lightroom will generate a new previews folder, and you should be back in business.

  • Suggestions, Observations and problem with Time Capsule shares

    *Some Observations*
    The Time Capsule can take a long time to become active. This is especially true if using an extended or WDS network. I would suspect this is due to the negotiation between devices that it needs to do. I have on occasion believed it to be hung, only to find that after walking away for a bit it comes up. This also impacts devices showing up in the Airport utility.
    Using a time capsule with one Airport Express B/G will work, but adding a second creates problems.
    Extending a network with an Airport Express N seems to work well.
    Best bet is to set up separate B/G and N networks and run your N network as N only at 5Ghz.
    WEP provides no real security, so think of it as you would an open network.
    *My Issue*
    I am having an issue where the time capsule shares become unavailable. It is an intermittent issue, and I have been unable to identify a test case. This happens for devices connected over ethernet as well as wireless. The Time Capsule shows in the Finder list, but the volumes are not available. Connecting to them fails.
    The device also appears in the Airport Utility list, but when clicking on Manual Setup, or guided set up, it causes a hang.
    This results in Time Machine hanging when trying to initiate a backup.
    I have also noticed that when this happens, the signal does start to get a bit flaky with "Roam (Beacons Lost)" messages. Wireless connectivity still seems to be very useable though. I can connect to other network shares through the Time Machine, but not to the shares on the Time Machine. The only way to recover from this is to power cycle the Time Capsule.
    One thing I want to investigate more tonight is whether there are any issues with my keychain and old passwords in case there are multiple failed attempts in the mix that are doing something. Although I know of no lockout feature on the device.
    Any suggestions would be appreciated. This is the second Time Machine, so I have seen this on two different devices. I am also seeing this issue across 4 different computers simultaneously, some via ethernet and some wirelessly. Time Capsule is 7.3.2

    Hi,
    I have pretty much the same problem, 1TB Time Capsule that works fine most of the time as a wireless router. Up till recently Time Machine backups just worked (as one would expect them to) wired and wireless. I went away for a week came back and now every time Time Machine invokes a back up process all of a sudden my wireless network goes down, Time Machine can no longer see the Time Capsule and all other devices (iphone / apple TV other non apple devices) no longer have connections (they see wireless but no pass through to the internet or each other).
    I have tried resetting all sorts of stuff, re-deployed my network, changed IP / LAN settings to make it less complex, Yasu'd my mac, connected only via wires, cleaned out my keychain etc etc and still get the same problems and as per Chris's point airport utility also hangs and the only solution is rebooting the time capsule.
    I am fairly frustrated with this! any suggestions / help would be gratefully accepted.
    thanks
    alex

  • Problems with Time machine caused by removing PKCS11.log?

    I haven't yet found a solution to my Time Machine no longer backing up: "while an error occurred while copying files to the backup disk"
    I requested help before, but so far nobody could help me solve this problem!
    I noticed that I removed, in a file clean up, a log file: PKCS11.log."
    I still have this file in the Trash but can not restore this file from Trash to its original location because I don't know its original location. The command" restore", or "put back" does not figure in the menu of Trash.
    It can be that the removal of this log file causes the back up problem in Time Machine?
    As you will notice from the above, I know very little about software and subjects like this and hope that somebody can help me to get Time Machine backing up again.
    Thanks on beforehand!
    Harry

    I am sorry that my message is presented in this "step-by-step way, but it can be that the following lessage from TM Buddy Widget is important?
    Starting standard backup
    Attempting to mount network destination using URL: afp://Harry%[email protected]/Data
    Mounted network destination using URL: afp://Harry%[email protected]/Data
    QUICKCHECK ONLY; FILESYSTEM CLEAN
    Disk image /Volumes/Data/Harry Briels’s iMac.sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    No pre-backup thinning needed: 8.22 GB requested (including padding), 464.29 GB available
    Indexing a file failed. Returned 200 for: /Library/Application Support/Adobe/Adobe PCD/cache/cache.db, /Volumes/Time Machine Backups/Backups.backupdb/HarryBrielsiMac/2013-07-04-181224.inProgress/46F8E230- 1335-4D3C-BA4F-E6A4B2AB0C07/Macintosh HD/Library/Application Support/Adobe/Adobe PCD/cache/cache.db
    Aborting backup because indexing a file failed.
    Stopping backup.
    Copied 86 files (266.0 MB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11
    Ejected Time Machine disk image.
    Ejected Time Machine network volume.
    Harry

  • Problem In time of creation wprk Scheduled...

    Hi...
    I have faced a problem in time of creation work scheduled, it is displaying a error massage like " Error while accessing public holiday calender on 20100101".
    Can anybody help me to resolve the problem....
    with regards,
    Diptendu

    Hi Diptendu,
    I believe you are creating work schedule rule for the year 2009. So for this, u need to mandatorily generate holiday calendar upto Jan 2010.
    This is because in order to generate workschedule rule for Dec2009, holidays in the holiday calendar should be assigned atleast in the month of Jan 2010 and then generate the holiday calendar upto Jan 2010. So the dates for generating holiday calendar would be 2009-2010
    Hope this would solve ur issue.
    Thanks.

  • Problems accessing Time Capsule on windows Vista

    I have an iMac running Leopard and a laptop running Vista Home Edition. I'm having some problems accessing Time Capsule from the Vista machine. everytime I click to access the drive, a message appears in the menu bar of the window that says (not responding). I've tried leaving it. I've even changed my entire wireless network to bypass the original g router (belkin) to use TC, so I now have TC as my router, Belkin just setup as a wired broadband modem but I still get the same problem. The mac seems fine, although I have had quite a few issues with drop outs.
    both machines have the latest version of Airport Utility and Bonjour.
    The laptop is a recent purchase to replace a dead XP machine, this worked fine and I managed to get stuff backed up just before it died, thankgod.
    Any help appreciated.

    No problem seeing Time Capsule with iMac, Dell desktop XP Home, Dell notebook XP Pro, and Fusion with XP Pro. All installed according to the installation guide. Installed AirPort Utility on all machines and updated firmware to 7.3.1. To see the other machines, make sure file sharing is on. Firewall on the PCs may need to be turned off. The printer plugged into the USB port also worked with all the XP systems and the iMac with a few missing features on iMac (I am assuming different driver issues). BTW, logging onto the created network and accessing the Time Capsule HD are separate. If you've entered different passwords for the HD and wireless networking when setting up Time Capsule initially (which I did through the iMac first), you'll need to enter them separately with the XP machines. You could also try resetting Time Capsule. Seems to work for others.

  • I have a problem: every time when i want to download free apple applications in the apple store, apple store asks me which type of credit card i want to use. Why did it ask this question?

    i have a problem: every time when i want to download free apple applications in the apple store, apple store asks me which type of credit card i want to use. Why did it ask this question?

    If you are within 14 days of purchase you can still return the iPhone and get the phone that suits your needs, however, I think you will find that no matter which phone you get the content provider will want to know how you are going to pay for future purchases. For Android phones it is Google, and they will certainly want to know.
    To create an Apple account without a credit card see: http://support.apple.com/kb/HT2534

  • Hi, I have the following problem with Time Capsule: La imagen del disco de copia de seguridad "/Volumes/Data/MacBook Pro de Carlos.sparsebundle" ya está en uso. Please your comments to solve this problem, i can't made a backup. Thanks.

    Hi, I have the following problem with Time Capsule: La imagen del disco de copia de seguridad “/Volumes/Data/MacBook Pro de Carlos.sparsebundle” ya está en uso. Please your comments to solve this problem, i can't made a backup. Thanks.

    Try Here  >  http://pondini.org/TM/Time_Capsule.html
    Perhaps P 2  >  Time Machine could not complete . . . sparsebundle could not be accessed. (Error 109).

  • Problems whit Time Machine in OSX 10.8.2.

    Hello, i have randomly problems whit Time Machine in OSX 10.8.2. The drive is then read only. After a disconnect and a new connect the problem is solved. Peter

    The drive is probably failing and should be replaced.

  • Problem with Time Dimension generating

    Hello, everybody.
    I have a problem with Time Dimension generating with the help of the Standard Wizard.
    1. I choose Dimensions -> New -> Using Time Wizard
    2. Set Name as "Time"
    3. On the next screen I choose ROLAP: Relational Storage
    4. On the next screen set Start year: 2003, Number of years: 3
    5. On the next screen choose all levels of the Normal Hierarchy
    On the 6-th step Wizard complete 60% of job and hang up doing nothing (buttons "Cancel" and "Help" is active).
    chapter "Create REL_TIME Dimension Using the TIME Dimension Wizard", step 1-6 of tutorial =(
    http://www.oracle.com/technology/obe/11gr1_owb/owb11g_update_getting_started_intro/lesson3/less3_relational.htm
    My system characteristics:
    Builder client 11.1.0.7.0, warehouse at local computer.
    can anybody give me any advice about this problem? =(
    thanks in advance.

    Had this issue been solved please?
    I have just come across the exact same problem and this post is the only one i managed to find which describes exactly what is happening to me.
    Thanks

  • I'm trying to update my Photoshop CS5, but continue to receive the same problem every time. The application manager update dialogue box simply states "some updates failed to install." There's no specific error code, but a link to contact support for furth

    I'm trying to update my Photoshop CS5, but continue to receive the same problem every time. The application manager update dialogue box simply states "some updates failed to install." There's no specific error code, but a link to contact support for further assistance. It doesn't take me to customer support, but does take me to a screen which states. "Error "This serial number is not for a qualifying product." I've checked my account and the product serial number is associated with my account., so I don't see any problem.  I have not been able to find a resolution to this problem, so I hope that someone can point me in the right direction.  Thank you!

    update directly, Product updates

  • HT1338 problems with time  machine and parallels desktop,  mac osx mountain lion 10.8

    have a good day, i have been problems with time  machine and parallels desktop, dont work in mac osx 10.8, i upgrate two mac´s (macbook air, imac), in the two machines shows problems, could you help me please.
    two machines have good ram memory (macbook air 11.1 2010 early , imac 2009 late).
    i am waiting for your help.
    thanks.
    Jesus.

    Take a look here:
    http://pondini.org/TM/Troubleshooting.html
    Specifically, you'll probably want to try item #A5 on that page, but there's a lot of other info there that may be useful.

  • Problem using Time Machine with Seagate BackUp Plus Pls HELP!!

    I have a late 2006 iMac (running OS 10.5.8) & am trying to back up using Time Machine with a new Seagate BackUp Plus drive. When I select the Seagate drive in Time Machine it tells me I msut first erase the (Seagate) disk. When I hit ERASE, I get a Time Machine error : COULD NOT UNMOUNT DISK. I see from various posts that 10,5 & 10,6 have issues with some external drives so want to upgrade to Mavericks (to get around this incompatibility issue): HOwever apparently my iMac is too old (by 1 year) to allow this. Can anyone give me any advice on how to get my iMac content backed up via Time Machine using the Seagate BackUP PLus drive I  bought (becasue it is supposedly "compatible with PCs & Macs".
    Thank you!!
    Wendy

    Your Seagate drive should work just fine. If it doesn't have any important data on it, try re-formatting it with Disk Utility to blank it out. Or run the Disk verify/repair and see if you can get it to fix any problems.
    I have a Drobo FS too. You probably need a firmware update, they issued one a while back to fix problems with Time Machine. Use the Dashboard or download it from their support site, http://www.drobo.com/support/updates.php
    Just curious how long you let it run after it "stalled". If it is a big file it could just be taking a while to copy over, do you see activity lights on the USB drive? The first time you use time machine let it run overnight, it's going to take a while, after that it will update quickly.
    While you're at it, you might want to verify your start-up disk too with Disk Utility.

Maybe you are looking for

  • Why the 'LIKE' operator takes so much time to run?

    I have a table T with 3 columns and 3 indexes: CREATE TABLE T id VARCHAR2(38) NOT NULL, fid VARCHAR2(38) NOT NULL, val NVARCHAR2(2000) NOT NULL ALTER TABLE T ADD (CONSTRAINT pk_t PRIMARY KEY (id,fid)); CREATE INDEX t_fid ON T(fid); CREATE INDEX t_val

  • NAT for remote access VPN clients

    Hello, I have a simple remote access VPN setup on a 2811 router. The remote subnet of the clients connecting have access to the local LAN subnet, but I am wondering if it is possible to somehow NAT those remote access users, so that they can go beyon

  • Problem printing wirelessly with OfficeJet Pro 8600 on a Macbook Pro running OS 10.7.4

    I just bought this printer. Setup when perfect, my Mac sees it and when I print, it starts fine, until... it looses contact. I re-installed everything twice, and I even got the latest installer from HP's web site. ePrint works fine, so I know docs ma

  • Password protected PDF in iBooks not displaying

    I loaded a password protected PDF into my iTunes library and then synced it with iPad (4th gen iOS 6.1.3). I see the PDF in iBooks on the iPad and when I click on it, it prompts for the password. I input the password and PDF "opens" but it's just the

  • More localization woes - upside down question marks.

    With some effort, I am able to load variable values from the database based on the language the user has selected, and display those variable values in my column headings and the like (see thread How are session variables used for localization? for t