Chrome 手机示例
我一直在浏览 ChromeToPhone 示例。有意图
com.google.ctp.UPDATE_UI
com.google.ctp.AUTH_PERMISSION
它们是内置于 Android 意图还是为应用程序自定义。如果是自定义的,Chrometophone 示例中响应它们的活动在哪里。
I have been going through the ChromeToPhone example. There are intents
com.google.ctp.UPDATE_UI
com.google.ctp.AUTH_PERMISSION
Are they built in android intents or custom for the application. If custom, where are the activities that respond to them in the Chrometophone example.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些是由 Chrome to Phone 应用定义的自定义意图,如操作字符串中的包名称所示:
com.google.ctp
。SetupActivity.java 以编程方式注册此广播操作的侦听器。清单中没有为此注册接收器,因为它仅与特定活动相关。
Those are custom intents defined by the Chrome to Phone app, as is hinted by the package name in the action strings:
com.google.ctp
.SetupActivity.java programmatically registers a listener for this broadcast action. There isn't a receiver registered in the manifest for this because it's only ever relevant to the particular activity.