Alex Rivera | Logout

Is there a function in Android analogous to "int main" in C/C++ which contains the program's main loop?

Asked 2009-07-08T17:59:42.713
12

Normally in a C or C++ program there's a main loop/function, usually int main (). Is there a similar function that I can use in android Java development?

Edit
Report

2 Answers

6

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.

answered 2009-07-08T20:34:34.537
1

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

answered 2013-02-05T21:22:55.607

Your Answer