java.lang.IllegalStateException: Task already scheduled or cancelled
Printable View
java.lang.IllegalStateException: Task already scheduled or cancelled
any one have idea to change bubble axis acoording to timer.schedule(this,1000,3000) because it continuously minus(--) x axis.
You haven't provided any code or any context at all, so it's going to be pretty hard to help you. Check out the link in my signature about asking smart questions, post an SSCCE (NOT your whole project), and we'll go from there.
Actually i want to minus bubble axis by using timer.schedule.
public void position() {//Change X axis According fixed time
m_pTimerTask.CTimerTask1();//call method
}
public void CTimerTask1() {
m_pTimer.schedule(m_pTimerTask,2000,5000);
}
Where/what line in your code is generating the exception?
Your posted code doesn't really show anything useful for debugging.
Please use code tags when posting code. Use the # icon. See: BB Code List - Java Forums
when i run application.
Yes, I assume it happens during execution, not when compiling.Quote:
when i run application
Where/what line in your code is generating the exception?
i m developing bubble game so i have to change bubble Axis with fixed interval of time ex-(1 min.)and i using timer.schedule().so how can i use this concept.plz tell me.
You seem to be hiding information from us for some reason -- is this supposed to be a test of our mind-reading abilities or do you really have a question that you want to have answered. If the latter, then you'll probably want to provide enough information to allow the question to be answered. Please have a look at the "how to ask smart questions" link in my signature links below for some useful tips.
You need to change the line of code that is causing the exception. That's about as helpful as someone can be with what little you have given us.
I have no idea what OP is bubbling errrr babbling on about!