When you create a new class, why must you alway开发者_运维知识库s say for example:
class Main extends Activity { ... }
You don't. When you create a new Activity
, it must extends Activity
, but you may create any other class as well.
Extending Activity
gives you the ready-made UI and resources management and allows the zigote to instantiate you as a GUI application.
精彩评论