I have to execute \"Start\" and \"Finish\" Commands in the Sequential Order in my program and synchronize everything at the end. So I\'m inserting the Offline commands in th
Don't synchronize.
That's nearly always a mistake in Codename One. Your code deals with the UI so it should be on the EDT and Display.getInstance().isEDT()
should be true.
My guess is that one of the commands in the middle uses one of the following invokeAndBlock()
derivatives:
addToQueueAndWait
Which triggers a second round of synchronization to run.
You can trace that by reproducing the issue and checking which command in the list is specifically there at each time. Then fix that command so it doesn't block in this way.
Another approach to fixing it is to remove the list immediately when you start processing which will prevent a duplicate execution of commands.