0

hello i am using java.util.Timer for scheduling task and show notification for appointments only one time but if i cancel schedule appointment with help of timer.cancel(); and timer.purge();
it's unable to cancel and it performs on a particular time...

Please Help....

1
  • 1
    Please post the relevant sections of code. Feb 14, 2011 at 5:12

1 Answer 1

0

If you are using Timer for scheduling an apointment, or another thing what can happen while your activity is not in foreground it is better to use AlarmManager.

Task scheduled with Timer can not being runned exactly in scheduled time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.