12
In Android environment, there is no main(). The OS relies on the manifest file to find out the entry point, an activity in most case, into your application.
You should read http://developer.android.com/guide/topics/fundamentals.html for more detail.
Maybe it's possible by creating a timer and execute custom functions at every tick, reset the timer when it's at a specific time