The 'delay' action in a task that is called from another task causes the two tasks to hang. I tried the Sleep Timer device instead and it works fine. The only thing is that I would like to have a short delay of less than a second, and the Sleep Timer device has no such option.
BTW,
I didn't do much with the phone control yet, but I will!