Android学习笔记--Activity 之间传递数据. Android- passing data between Activities . 但是,Fragment总是被嵌在Activity 中。 Fragments are always part of an activity . Please describe the life cycle of the Activity . 设置为"true"时,Activity 仍是任务的一部分,但是仅限于当前会话。 When it's set to"true", the activity remains part of the task only for the current session.
Android ensure single instance of activity . Fragment:表示activity 中的行为或用户界面的一部分。 Fragment: represents a behavior or a part of user interface in an activity . 举例来说,假设当前任务(任务A)的堆栈中有3个Activity,当前Activity下有2个Activity 。 Suppose, for example, that the current task(Task A) has three activities in its stack- two under the current activity . Please describe the life cycle of the Activity . 图1.Snackbar在Activity 底部显示一条消息,但其余的Activity 仍可用。 A Snackbar shows a message at the bottom of the activity , but the rest of the activity is still usable. 如果用户离开任务较长时间,系统会清除任务中除根Activity 以外的所有Activity 。 If the user leaves a task for a long time, the system clears the task of all activities except the root activity . 系统会在Activity 开始与用户互动之前调用此回调。 The system invokes this callback just before the activity starts interacting with the user.当Activity A启动B,A会stop,但是系统会保留其状态(比如滚动位置和表单中输入的文字)。 When Activity A starts Activity B, Activity A is stopped, but the system retains its state(such as scroll position and text entered into forms). Fragment表示Activity 中的行为或用户界面部分。 A Fragment represents a behavior or a portion of user interface in an Activity .如果您打算构建一个独立的应用,不允许其他应用激活其Activity ,则不需要任何其他intent过滤器。 If you intend for your app to be self-contained and not allow other apps to activate its activities , you don't need any other intent filters. Fragment代表Activity 当中的一项操作或一部分用户界面。 A Fragment represents a behavior or a portion of user interface in an Activity .在澳洲连续居住了10年,累计5年没有领取activity testedincomesupportpayment。 Years continuous Australian residence, and not have been an activity tested income support payment recipient for a five year cumulative period. 注:尽管Activity 在新任务中启动,但是用户按“返回”按钮仍会返回到前一个Activity 。 Note: Although the activity starts in a new task, the Back button still returns the user to the previous activity . 四种组件类型中的三种-Activity 、服务和广播接收器-通过名为Intent的异步消息进行启动。 Three of the four component types- activities , services, and broadcast receivers- are activated by an asynchronous message called an intent. GeofencingAPI和Activity RecognitionAPI之类的高级API提供了应用可用来提供出色体验的功能。 High-level APIs, such as the geofencing API and the activity recognition API, provide features that your app can use to provide great experiences. 在某些情况下,您可以启动Activity 来接收结果,在这种情况下,Activity 也会在Intent中返回结果。 In some cases, you can start an activity to receive a result, in which case the activity also returns the result in an Intent. Activity 作为Activity 的子类实现,您可以在Activity 开发者指南中了解有关它的更多详情。An activity is implemented as a subclass of Activity and you can learn more about it in the Activities developer guide. 如果您的身份验证器Activity 需要任何特殊的初始化参数,您可以使用Intent.putExtra()将它们附加到该Intent。 If your authenticator activity needs any special initialization parameters, you can attach them to the intent using Intent. putExtra(). OnResume()的以下示例对应于以上的onPause()示例,因此它初始化Activity 暂停时释放的照相机。 The following example of onResume() is the counterpart to the onPause() example above, so it initializes the camera that's released when the activity pauses. WindowsAzure表服务有4个通用的Activity ,当将它们添加到设计窗体中时,你需要指定表实体类型。 There are 4 generic activities for Windows Azure Table service, and you need to specify the table entity type when adding them to the designer canvas. 不同应用中的activity 可以共享同一个affinity值,同一个应用中的activity 也可以赋予不同的taskaffinity值。 Activities defined in different apps can share an affinity, or activities defined in the same app can be assigned different task affinities.您不想让其他应用访问的Activity 不应包含intent过滤器,您可以自己使用显式intent启动它们。 Activities that you don't want to make available to other applications should have no intent filters, and you can start them yourself using explicit intents. 该研究由驾驶体验零售商Activity Superstore进行,分析了12个不同汽车制造商的图像,包括法拉利,兰博基尼和帕加尼等。 The study carried out by driving experience retailer Activity Superstore, analyzed images of 12 different car manufacturers including the likes of Ferrari, Lamborghini, and Pagani.
展示更多例子
结果: 28 ,
时间: 0.018
English
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt