初识Activity
发布时间:2016-07-14 20:00:31
CallbackDescriptiononCreate()This is the first callback and called when the activity is first created.onStart()This callback is called when ...
Callback | Description |
---|
onCreate() | This is the first callback and called when the activity is first created. |
onStart() | This callback is called when the activity becomes visible to the user. |
onResume() | This is called when the user starts interacting with the application. |
onPause() | The paused activity does not receive user input and cannot execute any code and called when the current activity is being paused and the previous activity is being resumed. |
onStop() | This callback is called when the activity is no longer visible. |
onDestroy() | This callback is called before the activity is destroyed by the system. |
onRestart() | This callback is called when the activity restarts after stopping it. |
关键代码如下:
public class MainActivity extends Activity {
原标题:初识Activity
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。