我是 Android 的新手,正在研究框架,这迫使我问这个问题。 Since we are extending Activity in Android, there has to be main
somewhere in Activity
or there is an hidden class that Activity
implements that contains main
。
我到处找,但没找到。如果有人能对此给出明确的想法,我将不胜感激。
原文由 Basimalla Sebastin 发布,翻译遵循 CC BY-SA 4.0 许可协议
Android 使用 java 语言,但使用修改后的运行时模型执行。正如其他人所说,每个包中都包含一个清单。启动点在此清单中指定。转到 android 站点并执行基本教程。这将使您了解创建/部署/运行过程和基本应用程序生命周期并开始运行。