kri shan wrote:It gives variable runnableTask might not have been initialized.
This code is confusing. You are creating a runnable, which if it ever gets scheduled, would schedule itself to be run in the future. And since you never actually go through a code path that actually schedules the runnable, it never gets a chance to run the code that schedules itself.
Henry