Remove the while(true)
and it should continue, let me explain:
Android has a queue of tasks, so when finishs the current task it will go to the next task, so in your case the PostDelayed
will be executed after it finishs the current Infinity loop
, which will never be done, because the loop is blocking your Runnable
in the queue.
so the best way is remove the Infinity loop
, and in the end of your runnable call a method that continues your flow or a listener.