i have this code here:
fTask: ITask;
fTask := TTask.Create( procedure begin
while not True do Application.ProcessMessages;
TThread.Synchronize(TThread.Current, procedure begin
// update ui
end);
end);
fTask.ExecuteWork; // this will stop here.. until [fTask] finish work !!
In android didn't wait untill Task Complete !!