- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我尝试浏览开发者论坛以了解 Intent 。我对它了解不多。特别是这些行。
“Android 中的 Activity 是通过称为 Intent 的消息激活的。 Intent 消息传递是一种用于在相同或不同应用程序中的组件之间进行后期运行时绑定(bind)的工具。 Intent 本身是一个 Intent 对象,是一种被动数据结构,包含对要执行的操作的抽象描述。”
我有几个问题。
(a)Why is the intent messaging facility considered as a late run-time binding between components?
(b)Why is the word “passive” used for the intent data structure?
(c) Can anybody give me with an example what this abstract description of an operation to be performed means ?
最佳答案
Why is the intent messaging facility considered as a late run-time binding between components?
因为它不是组件之间的编译时绑定(bind)(例如,使用 Java 构造函数)。
Why is the word “passive” used for the intent data structure?
因为 Intents
是消息,它们本身不会做工作,而是指示其他事情要做的工作。
Can anybody give me with an example what this abstract description of an operation to be performed means ?
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://commonsware.com")));
这里,Intent
是一个抽象描述:我们想要“查看”由以 http://
开头的 URI 标识的内容。在 Android 上,任何数量的 Activity 都可以响应此 Intent
,包括 Web 浏览器和秃头家伙支持其网站的专用应用程序。根据设备的不同,零个、一个或多个 Activity 可以匹配此 Intent
结构,Android 可以处理所有这些场景。
关于android - 关于 Intent 的后期运行时绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15879560/
总结 我需要在 Camel 服务器 in-modify-out 过程中构建一组统计数据,并将这些统计数据作为一个对象(单个 json 日志行)发出。这些统计数据需要包括: input file met
某个元素使用以下 CSS 功能产生了惊人的结果: 盒子阴影;边界半径;边框和背景上的 RGBA 颜色。 问题是前两个需要延迟 Firefox/Chrome/Safari 浏览器,第二个不兼容 IE8
在我的 Rails 应用程序中有这段代码: window.onload = -> $("#mycontainer").typewriter() $("#div1").fadeIn("slow"
我想检查我的 api 是否工作正常。我有一个只有 post 请求而没有 GET 的 api。 教程在这里:https://learn.microsoft.com/en-us/azure/applica
我想检查我的 api 是否工作正常。我有一个只有 post 请求而没有 GET 的 api。 教程在这里:https://learn.microsoft.com/en-us/azure/applica
我是一名优秀的程序员,十分优秀!