Im currently running out of ideas at the moment and need some suggestions or ideas.

The alert (a popup) should be generated when the time at which the call-back time has been requested is in 1 minute from the current time.

My current program uses a while loop which keep checking the call-back time with the current time but the problem is it will keep looping first until the condition is meet, then my program will show up... including the popup.

So, what do i need to do? So that my program will show up first and then initiate the alert method to run in the background or is there a better idea to do this?

Any suggestions/ideas is appreciated, thanks.

Recommended Answers

All 2 Replies

See the API docs for (and/or search for a tutorial on) TimerTask and Timer.

Thanks masijade, i created a timer to delay the alert method, works nicely.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.