Activities are one of the fundamental building blocks of apps on the Android platform. They serve as the entry point for a user's interaction with an app, and are also central to how a user navigates within an app (as with the Back button) or between apps (as with the Recents button).
活动是Android平台上应用程序的基本组成部分之一。他们作为用户与应用程序交互的切入点,也是一个app(例如返回按钮)或者app之间用户如何导航的中心(例如旋转按钮)。
Skillfully managing activities allows you to ensure that, for example:
巧妙的管理活动需要你确保以下几点,例如:
- Orientation changes take place smoothly without disrupting the user experience.
方向变化流畅不会影响用户体验。
- User data is not lost during activity transitions.
用户数据不会在活动转换期间丢失。
- The system kills processes when it's appropriate to do so.
系统在适当的时间杀死进程。
This section begins by providing an introduction to the concept of activities. It goes on to describe the activity lifecycle in detail. Next, it discusses state changes and how to accommodate them. After that, this section talks about the relationship between activities and intra- and inter-app. navigation. Last, this section explains the relationship between activities and the processes that host them.
本节首先介绍活动的概念。详细描述了Activity的生命周期。接着讨论了(Activity生命周期)状态变化和如何适应他们(的变化)。然后,讨论了Activity之间和跨应用app之间的关系。最后,解释了Activity和宿主进程之间的关系
accommodate
英 [əˈkɒmədeɪt] 美 [əˈkɑ:mədeɪt]
vt.
容纳;使适应;向…提供住处;帮忙
vi.
[后面省去反身代词]适应于;(眼)作调节,调节眼球的晶状体(使其变得适应不同距离的物体);调解,调停
inter-app:跨应用程序
intra-:内部的