Android Activity

1. Activity是Android 中非常重要的概念. 基本上android 程序就是围绕Activity来进行.

什么是Activity?

"Activity 就是布满整个窗口或者悬浮于其他窗口上的交互界面, 在一个应用程序中, 通常由多个Activity组成." (老罗安卓视频)

An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface. The window typically fills the screen, but may be smaller than the screen and float on top of other windows.


在程序中, activity就是一个java class, 需要继承 android.app.Activity.

里面有几个重要方法, 在下面的生命周期中都有标明. 

其中 onCreate()是最重要的, 因为当执行一个activity时, onCreate()方法将会自动被调用.


Activity 生命周期



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值