How can Android source code not have a main method and still run?

前端 未结 13 2469
萌比男神i
萌比男神i 2020-11-30 07:40

I\'ve seen this in a few tutorials now... but how in the world can Android source code not have a main method and still run.

For example (from http://developer.andro

13条回答
  •  迷失自我
    2020-11-30 08:10

    In Java, there is a main even if it isn't listed as main(). The page you get after the icon click, whatever its name, is the main().

提交回复
热议问题