Android doesn't have a "Main Activity" or class like there is in some other languages. A regular application is a collection of Activities, any and all of those can be the entry point to to an application.
The only thing you do need to remember is that if you rename the class name of the activity (which needs to match the file name due to Java restrictions) you also need to update its name in the AndroidManifest.xml. (which usually also declares which one of your activities is the "default" one) On Thursday, September 20, 2012 1:43:09 PM UTC+3, Daz wrote: > > My question is, when creating a new Android project from scratch, does the > main activity .xml & .java files have to be named as they come: > > MainActivity.java > activity_main.xml > > I have tried renaming them as test runs and I seem to run into strange > problems, which I can only presume is the above. The reason I ask is > because I am trying to follow an android tutorial, and the he calls his > .xml (main.xml), but he is operating on an older version of eclipse under > 2.3.3. > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

