[关闭]
@ZeroGeek 2015-07-23T07:32:51.000000Z 字数 1052 阅读 627

读官网Activity后的疑问

未分类


注:粗体文字为不理解的地方

2.onPause()中某句,不理解

This is usually where you should commit any changes that should be persisted beyond the current user session (because the user might not come back).

3

(The android:name attribute is the only required attribute—it specifies the class name of the activity.
android:name属性必须被设置,来指定activity的名字)
Once you publish your application, you should not change this name, because if you do, you might break some functionality, such as application shortcuts (read the blog post, Things That Cannot Change).

4 启动Intent中的问题intent-filter

However, your application might also want to perform some action, such as send an email, text message, or status update, using data from your activity. In this case, your application might not have its own activities to perform such actions, so you can instead leverage the activities provided by other applications on the device, which can perform the actions for you.

5 onResume onPause?

Because this state can transition often, the code in these two methods should be fairly lightweight in order to avoid slow transitions that make the user wait.

6.关于弹出软键盘,界面布局问题?(activity会销毁重建)

7.onRestoreInstanceState()和onCreate()使用区别?

8.Coordinating activities?

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注