thanx Schettino,John i need one suggestion. lets say we want to call a function repeatedly (or at regular intervals )and at the same time keep the user interface active.what could be the best possible way to do it. i think in the event loop we can give the some time out value and whenever we get some nilevent we can call that function.i m doing the same for my app but when i run it on the emulator it doesn't keep the user interface active in between times i just want to know what is the optimum trade off for the value of time out so that it will keep the user intrface active.
